made it so that the player always starts with a minimum of 100 gold

This commit is contained in:
Dave White 2003-12-03 19:11:18 +00:00
parent a00c1b7e3b
commit cc83a55d3c

View file

@ -68,8 +68,10 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
if(gold.empty())
gold = "100";
const int minimum_gold = 100;
int ngold = ::atoi(gold.c_str());
if(ui == unit_cfg.begin() && state_of_game.gold >= 0 &&
if(ui == unit_cfg.begin() && state_of_game.gold >= minimum_gold &&
(*level)["disallow_recall"] != "yes")
ngold = state_of_game.gold;