diff options
author | glx <glx@openttd.org> | 2007-10-10 01:36:15 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-10-10 01:36:15 +0000 |
commit | 94c9e6533192804e277372bd65604bd244d58e80 (patch) | |
tree | 88f3259654def2962bd0ac62c9280b6166da94c7 | |
parent | 56ba73a714f0e33096bd04d786f3f6f964fdfca0 (diff) | |
download | openttd-94c9e6533192804e277372bd65604bd244d58e80.tar.xz |
(svn r11243) -Fix: update waypoint signs when renaming a town
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 5b6a06a90..7771e541b 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -42,6 +42,7 @@ #include "newgrf_townname.h" #include "misc/autoptr.hpp" #include "autoslope.h" +#include "waypoint.h" /* Initialize the town-pool */ DEFINE_OLD_POOL_GENERIC(Town, Town) @@ -1899,6 +1900,7 @@ CommandCost CmdRenameTown(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) UpdateTownVirtCoord(t); _town_sort_dirty = true; UpdateAllStationVirtCoord(); + UpdateAllWaypointSigns(); MarkWholeScreenDirty(); } else { DeleteName(str); |