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

pull/155/head
truebrain 13 years ago
parent 215867c213
commit 8ee7719912

@ -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;

Loading…
Cancel
Save