comparison src/town_cmd.cpp @ 14645:b7a22979b84e draft

(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
author smatz <smatz@openttd.org>
date Wed, 24 Feb 2010 14:46:15 +0000
parents 60d313b887b8
children 6cc90e733c5d
comparison
equal deleted inserted replaced
14644:2ca701a16d9e 14645:b7a22979b84e
2307 { 2307 {
2308 /* Warn the users if towns are not allowed to build roads, 2308 /* Warn the users if towns are not allowed to build roads,
2309 * but do this only onces per openttd run. */ 2309 * but do this only onces per openttd run. */
2310 static bool warned_no_roads = false; 2310 static bool warned_no_roads = false;
2311 if (!_settings_game.economy.allow_town_roads && !warned_no_roads) { 2311 if (!_settings_game.economy.allow_town_roads && !warned_no_roads) {
2312 ShowErrorMessage(STR_ERROR_TOWN_EXPAND_WARN_NO_ROADS, INVALID_STRING_ID, 0, 0); 2312 ShowErrorMessage(STR_ERROR_TOWN_EXPAND_WARN_NO_ROADS, INVALID_STRING_ID, WL_WARNING);
2313 warned_no_roads = true; 2313 warned_no_roads = true;
2314 } 2314 }
2315 2315
2316 /* The more houses, the faster we grow */ 2316 /* The more houses, the faster we grow */
2317 uint amount = RandomRange(ClampToU16(t->num_houses / 10)) + 3; 2317 uint amount = RandomRange(ClampToU16(t->num_houses / 10)) + 3;
2451 } 2451 }
2452 } 2452 }
2453 2453
2454 /* only show errormessage to the executing player. All errors are handled command.c 2454 /* only show errormessage to the executing player. All errors are handled command.c
2455 * but this is special, because it can only 'fail' on a DC_EXEC */ 2455 * but this is special, because it can only 'fail' on a DC_EXEC */
2456 if (IsLocalCompany()) ShowErrorMessage(STR_ERROR_BRIBE_FAILED, STR_ERROR_BRIBE_FAILED_2, 0, 0); 2456 if (IsLocalCompany()) ShowErrorMessage(STR_ERROR_BRIBE_FAILED, STR_ERROR_BRIBE_FAILED_2, WL_INFO);
2457 2457
2458 /* decrease by a lot! 2458 /* decrease by a lot!
2459 * ChangeTownRating is only for stuff in demolishing. Bribe failure should 2459 * ChangeTownRating is only for stuff in demolishing. Bribe failure should
2460 * be independent of any cheat settings 2460 * be independent of any cheat settings
2461 */ 2461 */