(svn r11243) -Fix: update waypoint signs when renaming a town
authorglx
Wed, 10 Oct 2007 01:36:15 +0000
changeset 7709 439dcda6d74b
parent 7708 48d236e6fbf4
child 7710 777524fbb1fb
(svn r11243) -Fix: update waypoint signs when renaming a town
src/town_cmd.cpp
--- a/src/town_cmd.cpp	Wed Oct 10 01:15:07 2007 +0000
+++ b/src/town_cmd.cpp	Wed Oct 10 01:36:15 2007 +0000
@@ -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 @@
 		UpdateTownVirtCoord(t);
 		_town_sort_dirty = true;
 		UpdateAllStationVirtCoord();
+		UpdateAllWaypointSigns();
 		MarkWholeScreenDirty();
 	} else {
 		DeleteName(str);