mirror of https://github.com/OpenTTD/OpenTTD
(svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D)
parent
1ceef81cd3
commit
d6e88a7cab
|
@ -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…
Reference in New Issue