summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorGabda <gabda87@gmail.com>2019-01-05 14:22:07 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-08-17 21:45:20 +0100
commitb870596f153c17d9aa915ca67b8f6414d73cb31f (patch)
treee1d321b8a5987a6a4511b61e160b73af890a332a /src/town_cmd.cpp
parentd986f01d078553640528e2d334627bf552a60931 (diff)
downloadopenttd-b870596f153c17d9aa915ca67b8f6414d73cb31f.tar.xz
Add #6887: Option to show zone inside local authority boundary of towns
Can be found at town information > local authority window Layout for button is same as Graph Keys Turn on/off for every town individually
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 65032c1fb..2049cbddc 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1746,6 +1746,7 @@ static void DoCreateTown(Town *t, TileIndex tile, uint32 townnameparts, TownSize
* similar towns they're unlikely to grow all in one tick */
t->grow_counter = t->index % TOWN_GROWTH_TICKS;
t->growth_rate = TownTicksToGameTicks(250);
+ t->show_zone = false;
_town_kdtree.Insert(t->index);