From 1ff0197ca406eb1eb197a18a5a8e525f9c0f28bc Mon Sep 17 00:00:00 2001 From: glx Date: Wed, 10 Oct 2007 01:36:15 +0000 Subject: (svn r11243) -Fix: update waypoint signs when renaming a town --- src/town_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf