Changeset - r19082:d01d0d6563ce
[Not reviewed]
master
0 1 0
truebrain - 12 years ago 2012-02-15 15:18:38
truebrain@openttd.org
(svn r23950) -Fix (r23731) [FS#5063]: never show GSGoal::Question() to spectators. Accidently INVALID_COMPANY == COMPANY_SPECTATOR
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/goal.cpp
Show inline comments
 
@@ -140,7 +140,7 @@ CommandCost CmdGoalQuestion(TileIndex ti
 
	if (type >= GOAL_QUESTION_TYPE_COUNT) return CMD_ERROR;
 

	
 
	if (flags & DC_EXEC) {
 
		if (company == _local_company || (company == INVALID_COMPANY && Company::IsValidID(_local_company))) ShowGoalQuestion(uniqueid, type, p2, text);
 
		if ((company != INVALID_COMPANY && company == _local_company) || (company == INVALID_COMPANY && Company::IsValidID(_local_company))) ShowGoalQuestion(uniqueid, type, p2, text);
 
	}
 

	
 
	return CommandCost();
0 comments (0 inline, 0 general)