summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2008-03-22 11:27:46 +0000
committermaedhros <maedhros@openttd.org>2008-03-22 11:27:46 +0000
commit292cfc56f65b1866d8fe31a9450b88a6831eee1d (patch)
treefb2788a5a758bd6ce62d1a421eb59af8dfdc6b48 /src/town_gui.cpp
parentf0538b4b622a80a93d27e7dc9f1cb05620eebb90 (diff)
downloadopenttd-292cfc56f65b1866d8fe31a9450b88a6831eee1d.tar.xz
(svn r12391) -Feature: Show whether a town is a "city" in the town description title bar.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 70f993849..bb8a1136e 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -275,6 +275,10 @@ static void TownViewWndProc(Window *w, WindowEvent *e)
Town *t = GetTown(w->window_number);
switch (e->event) {
+ case WE_CREATE:
+ if (t->larger_town) w->widget[1].data = STR_CITY;
+ break;
+
case WE_PAINT:
/* disable renaming town in network games if you are not the server */
w->SetWidgetDisabledState(8, _networking && !_network_server);