(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
authorKUDr
Fri, 24 Aug 2007 17:49:42 +0000
changeset 7964 46224d0b4752
parent 7963 e04dbb203f3e
child 7965 c1a170885a60
(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
src/waypoint.cpp
--- a/src/waypoint.cpp	Fri Aug 24 00:23:35 2007 +0000
+++ b/src/waypoint.cpp	Fri Aug 24 17:49:42 2007 +0000
@@ -196,6 +196,10 @@
 		wp->town_index = 0;
 		wp->string = STR_NULL;
 		wp->town_cn = 0;
+	} else if (flags & DC_EXEC) {
+		/* move existing (recently deleted) waypoint to the new location */
+		RedrawWaypointSign(wp);
+		wp->xy = tile;
 	}
 
 	if (flags & DC_EXEC) {