summaryrefslogtreecommitdiff
path: root/landscape.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-12 15:53:32 +0000
committertron <tron@openttd.org>2005-02-12 15:53:32 +0000
commit6d2b9d2c3a773f415cf65cd071453b9a47d73f7e (patch)
treeca1e02fe05c2c7241836503d7f08bb634c442bfd /landscape.c
parenteefb125dc7a266ba3b522c4de71fd431dc8ebba9 (diff)
downloadopenttd-6d2b9d2c3a773f415cf65cd071453b9a47d73f7e.tar.xz
(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()
-Fix: [1116619] Generate the correct smoke type for diesel trains
Diffstat (limited to 'landscape.c')
-rw-r--r--landscape.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/landscape.c b/landscape.c
index dfcdbe8c2..e406c76fa 100644
--- a/landscape.c
+++ b/landscape.c
@@ -334,7 +334,9 @@ int32 CmdClearArea(int ex, int ey, uint32 flags, uint32 p1, uint32 p2)
// draw explosion animation...
if ((x==sx || x==ex) && (y==sy || y==ey)) {
// big explosion in each corner, or small explosion for single tiles
- CreateEffectVehicleAbove(x + 8,y + 8, 2, sy==ey && sx==ex ? EV_DEMOLISH : EV_CRASHED_SMOKE);
+ CreateEffectVehicleAbove(x + 8, y + 8, 2,
+ sy == ey && sx == ex ? EV_EXPLOSION_SMALL : EV_EXPLOSION_LARGE
+ );
}
}
}