(svn r23950) -Fix (r23731) [FS#5063]: never show GSGoal::Question() to spectators. Accidently INVALID_COMPANY == COMPANY_SPECTATOR

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truebrain 12 years ago
parent 1274a77da0
commit b601b057d4

@ -140,7 +140,7 @@ CommandCost CmdGoalQuestion(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
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();

Loading…
Cancel
Save