Changeset - r18806:f3b285f62c97
[Not reviewed]
master
0 1 0
truebrain - 12 years ago 2011-12-23 23:29:59
truebrain@openttd.org
(svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/goal.cpp
Show inline comments
 
@@ -80,6 +80,8 @@ CommandCost CmdCreateGoal(TileIndex tile
 
		default: return CMD_ERROR;
 
	}
 

	
 
	if (company != INVALID_OWNER && company != _local_company) return CommandCost();
 

	
 
	if (flags & DC_EXEC) {
 
		Goal *g = new Goal();
 
		g->type = type;
0 comments (0 inline, 0 general)