From 92ac503b744bb226d4b91fa55b42f92bd4bd9f69 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 31 Dec 2004 18:57:24 +0000 Subject: (svn r1312) -Add: Patch which is on by default: population in label of the town -Fix: Expand town is a bit more agressive -Fix: Fixed a bug in growing algorithm --- settings_gui.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'settings_gui.c') diff --git a/settings_gui.c b/settings_gui.c index f92463b5b..253b3acf5 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -10,6 +10,7 @@ #include "newgrf.h" #include "network.h" #include "console.h" +#include "town.h" static uint32 _difficulty_click_a; static uint32 _difficulty_click_b; @@ -526,6 +527,19 @@ int32 AiNew_PatchActive_Warning(int32 p1) return 0; } +int32 PopulationInLabelActive(int32 p1) +{ + Town *t; + + FOR_ALL_TOWNS(t) { + if (t->xy) { + UpdateTownVirtCoord(t); + } + } + + return 0; +} + int32 InvisibleTreesActive(int32 p1) { MarkWholeScreenDirty(); @@ -598,6 +612,7 @@ static const PatchEntry _patches_ui[] = { {PE_UINT8, PF_MULTISTRING | PF_PLAYERBASED, STR_CONFIG_PATCHES_TOOLBAR_POS, "toolbar_pos", &_patches.toolbar_pos, 0, 2, 1, &v_PositionMainToolbar}, {PE_UINT8, PF_0ISDIS | PF_PLAYERBASED, STR_CONFIG_PATCHES_SNAP_RADIUS, "window_snap_radius", &_patches.window_snap_radius, 1, 32, 1, NULL}, {PE_BOOL, PF_PLAYERBASED, STR_CONFIG_PATCHES_INVISIBLE_TREES, "invisible_trees", &_patches.invisible_trees, 0, 1, 1, &InvisibleTreesActive}, + {PE_BOOL, PF_PLAYERBASED, STR_CONFIG_PATCHES_POPULATION_IN_LABEL, "population_in_label", &_patches.population_in_label, 0, 1, 1, &PopulationInLabelActive}, }; static const PatchEntry _patches_construction[] = { -- cgit v1.2.3-54-g00ecf