From 6d1c974254735f5d4232907718f2cac1869c64c8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 May 2009 18:56:25 +0000 Subject: (svn r16384) -Codechange: move u.effect to EffectVehicle --- src/industry_cmd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/industry_cmd.cpp') 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) -- cgit v1.2.3-54-g00ecf