(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)

This commit is contained in:
smatz
2009-11-24 21:18:11 +00:00
parent ab417c6c06
commit f7466979b9
12 changed files with 107 additions and 24 deletions

View File

@@ -753,6 +753,17 @@ static bool DragSignalsDensityChanged(int32)
return true;
}
static bool TownFoundingChanged(int32 p1)
{
if (_game_mode != GM_EDITOR && _settings_game.economy.found_town == TF_FORBIDDEN) {
DeleteWindowById(WC_FOUND_TOWN, 0);
return true;
}
InvalidateWindowData(WC_FOUND_TOWN, 0);
return true;
}
/*
* A: competitors
* B: competitor start time. Deprecated since savegame version 110.