Changeset - r7748:77cc4928df15
[Not reviewed]
master
0 1 0
glx - 17 years ago 2007-10-17 15:47:49
glx@openttd.org
(svn r11285) -Fix: 'site unsuitable' was always shown instead specified message when trying to build industry ingame (Csaboka)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1633,9 +1633,9 @@ CommandCost CmdBuildIndustry(TileIndex t
 
		num = indspec->num_table;
 
		itt = indspec->table;
 

	
 

	
 
		_error_message = STR_0239_SITE_UNSUITABLE;
 
		do {
 
			if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE);
 
			if (--num < 0) return CMD_ERROR;
 
		} while (!CheckIfIndustryTilesAreFree(tile, itt[num], num, p1));
 

	
 
		if (CreateNewIndustryHelper(tile, p1, flags, indspec, num) == NULL) return CMD_ERROR;
0 comments (0 inline, 0 general)