(svn r10892) -Fix [FS#1127]: trains would not get flooded when they are at the lower part of a tile that would become a coast tile after flooding. Patch by frosch.
authorrubidium
Tue, 14 Aug 2007 17:31:15 +0000
changeset 7939 ee4383a3860b
parent 7938 ee704bc1c5d3
child 7940 6357c4a839d2
(svn r10892) -Fix [FS#1127]: trains would not get flooded when they are at the lower part of a tile that would become a coast tile after flooding. Patch by frosch.
src/water_cmd.cpp
--- a/src/water_cmd.cpp	Tue Aug 14 17:05:33 2007 +0000
+++ b/src/water_cmd.cpp	Tue Aug 14 17:31:15 2007 +0000
@@ -567,6 +567,9 @@
 						)) {
 					break;
 				}
+
+				Vehicle *v = FindFloodableVehicleOnTile(target);
+				if (v != NULL) FloodVehicle(v);
 			}
 			/* FALLTHROUGH */