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
commit6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3 (patch)
treeca1e02fe05c2c7241836503d7f08bb634c442bfd /landscape.c
parentac758b6875ac1c95dc2ec0fadbb5b7d5ef7e8c67 (diff)
downloadopenttd-6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3.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
+ );
}
}
}