diff options
Diffstat (limited to 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c index 8530e2cb7..a942cf1ef 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -15,6 +15,7 @@ #include "sound.h" #include "depot.h" #include "vehicle_gui.h" +#include "train.h" const SpriteID _water_shore_sprites[15] = { 0, @@ -598,7 +599,7 @@ static void FloodVehicle(Vehicle *v) v = GetFirstVehicleInChain(v); u = v; - if (v->subtype == TS_Front_Engine) pass = 4; // driver + if (IsFrontEngine(v)) pass = 4; // driver // crash all wagons, and count passangers BEGIN_ENUM_WAGONS(v) |