summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 18:56:25 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 18:56:25 +0000
commit6d1c974254735f5d4232907718f2cac1869c64c8 (patch)
tree040ec7971db0b35dc92880f552a790185bf0cca5 /src/industry_cmd.cpp
parent2365d27a4d90ec32b0a9db09fe0fe04e4559911a (diff)
downloadopenttd-6d1c974254735f5d4232907718f2cac1869c64c8.tar.xz
(svn r16384) -Codechange: move u.effect to EffectVehicle
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 754cee0fe..902bc9097 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -702,8 +702,6 @@ static void MakeIndustryTileBigger(TileIndex tile)
static void TileLoopIndustry_BubbleGenerator(TileIndex tile)
{
- int dir;
- Vehicle *v;
static const int8 _bubble_spawn_location[3][4] = {
{ 11, 0, -4, -14 },
{ -4, -10, -4, 1 },
@@ -712,16 +710,16 @@ static void TileLoopIndustry_BubbleGenerator(TileIndex tile)
SndPlayTileFx(SND_2E_EXTRACT_AND_POP, tile);
- dir = Random() & 3;
+ int dir = Random() & 3;
- v = CreateEffectVehicleAbove(
+ EffectVehicle *v = CreateEffectVehicleAbove(
TileX(tile) * TILE_SIZE + _bubble_spawn_location[0][dir],
TileY(tile) * TILE_SIZE + _bubble_spawn_location[1][dir],
_bubble_spawn_location[2][dir],
EV_BUBBLE
);
- if (v != NULL) v->u.effect.animation_substate = dir;
+ if (v != NULL) v->animation_substate = dir;
}
static void TileLoop_Industry(TileIndex tile)