summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-31 18:57:24 +0000
committertruelight <truelight@openttd.org>2004-12-31 18:57:24 +0000
commit92ac503b744bb226d4b91fa55b42f92bd4bd9f69 (patch)
treed5f1d90b0c2c0315541e26c9c0bac1cfe02bfa48 /settings_gui.c
parent1fef394fdec6baaae1fcd0b7bc6f4b3499d03b12 (diff)
downloadopenttd-92ac503b744bb226d4b91fa55b42f92bd4bd9f69.tar.xz
(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
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c15
1 files changed, 15 insertions, 0 deletions
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[] = {