changeset 7443:823cd23494ea draft

(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.
author rubidium <rubidium@openttd.org>
date Tue, 14 Aug 2007 17:31:15 +0000
parents 60cf5845f300
children e9516aa13439
files src/water_cmd.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -567,6 +567,9 @@
 						)) {
 					break;
 				}
+
+				Vehicle *v = FindFloodableVehicleOnTile(target);
+				if (v != NULL) FloodVehicle(v);
 			}
 			/* FALLTHROUGH */