(svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D)

This commit is contained in:
truebrain 2011-12-23 23:29:59 +00:00
parent 215867c213
commit 8ee7719912

View File

@ -80,6 +80,8 @@ CommandCost CmdCreateGoal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
default: return CMD_ERROR; default: return CMD_ERROR;
} }
if (company != INVALID_OWNER && company != _local_company) return CommandCost();
if (flags & DC_EXEC) { if (flags & DC_EXEC) {
Goal *g = new Goal(); Goal *g = new Goal();
g->type = type; g->type = type;