mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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:
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…
Reference in New Issue
Block a user