diff options
author | tron <tron@openttd.org> | 2005-02-12 15:53:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-12 15:53:32 +0000 |
commit | 6b83a05adabaf5ab47d981b83d8bbf2c7cfc59c3 (patch) | |
tree | ca1e02fe05c2c7241836503d7f08bb634c442bfd /landscape.c | |
parent | ac758b6875ac1c95dc2ec0fadbb5b7d5ef7e8c67 (diff) | |
download | openttd-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.c | 4 |
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 + ); } } } |