From 6553f499910bfa2acd71fce94b2995ea6d89e5d3 Mon Sep 17 00:00:00 2001 From: alberth Date: Mon, 15 Feb 2010 10:28:40 +0000 Subject: (svn r19137) -Add: Report a more useful error when failing to build a bubble generator. --- src/industry_cmd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/industry_cmd.cpp') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 5ec1d150b..846bb6222 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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. -- cgit v1.2.3-54-g00ecf