(svn r12391) -Feature: Show whether a town is a "city" in the town description title bar.

This commit is contained in:
maedhros
2008-03-22 11:27:46 +00:00
parent f0538b4b62
commit 292cfc56f6
3 changed files with 52 additions and 0 deletions

View File

@@ -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);