(svn r19137) -Add: Report a more useful error when failing to build a bubble generator.
This commit is contained in:
@@ -1251,7 +1251,11 @@ static bool CheckNewIndustry_Lumbermill(TileIndex tile)
|
||||
*/
|
||||
static bool CheckNewIndustry_BubbleGen(TileIndex tile)
|
||||
{
|
||||
return GetTileZ(tile) <= TILE_HEIGHT * 4;
|
||||
if (GetTileZ(tile) > TILE_HEIGHT * 4) {
|
||||
_error_message = STR_ERROR_CAN_ONLY_BE_BUILT_IN_LOW_AREAS;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Industrytype check function signature.
|
||||
|
Reference in New Issue
Block a user