summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-14 17:31:15 +0000
committerrubidium <rubidium@openttd.org>2007-08-14 17:31:15 +0000
commit5d8fa0616e3642677ee3049549da5f70e1f21912 (patch)
treec87c86a5907b20e7f93678d767aadaefa10835e6 /src
parent71dec585f31d1d1254befd679422edd92a4a55ce (diff)
downloadopenttd-5d8fa0616e3642677ee3049549da5f70e1f21912.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/water_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
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 */