From 5d8fa0616e3642677ee3049549da5f70e1f21912 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 14 Aug 2007 17:31:15 +0000 Subject: (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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index f942349af..4c013857a 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -567,6 +567,9 @@ static void TileLoopWaterHelper(TileIndex tile, const TileIndexDiffC *offs) )) { break; } + + Vehicle *v = FindFloodableVehicleOnTile(target); + if (v != NULL) FloodVehicle(v); } /* FALLTHROUGH */ -- cgit v1.2.3-70-g09d2