summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-22 18:55:15 +0000
committersmatz <smatz@openttd.org>2009-09-22 18:55:15 +0000
commit8f45efa8ddcac130b6b115a2bdf32d7fc21b019e (patch)
tree896d8af637add9191901dbfdbc5f1edff19e51aa
parentde96f4d309da91471f0641f7940d4f6ff1d56c8f (diff)
downloadopenttd-8f45efa8ddcac130b6b115a2bdf32d7fc21b019e.tar.xz
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
-rw-r--r--src/town_cmd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index bc0b09853..3be7dd19f 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1586,7 +1586,10 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
}
UpdateNearestTownForRoadTiles(false);
_generating_world = false;
- if (t != NULL && !StrEmpty(text)) t->name = strdup(text);
+ if (t != NULL && !StrEmpty(text)) {
+ t->name = strdup(text);
+ t->UpdateVirtCoord();
+ }
}
return cost;
}