diff options
author | rubidium <rubidium@openttd.org> | 2009-03-11 19:50:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-11 19:50:19 +0000 |
commit | 48c8cdfd8470163d7b9a64fbba7f9b27b5499009 (patch) | |
tree | bb382da8392da0ebac1ad8612ddd1370fa8e69b7 /src | |
parent | a471321b1b6fe257173f93930245f674e91fc2fc (diff) | |
download | openttd-48c8cdfd8470163d7b9a64fbba7f9b27b5499009.tar.xz |
(svn r15675) -Codechange: don't unnecessarily mark vehicles dirty before deleting them; it already happens in the destructor.
Diffstat (limited to 'src')
-rw-r--r-- | src/effectvehicle.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/effectvehicle.cpp b/src/effectvehicle.cpp index 9ad90f120..ad73b5664 100644 --- a/src/effectvehicle.cpp +++ b/src/effectvehicle.cpp @@ -29,7 +29,6 @@ static void ChimneySmokeTick(Vehicle *v) TileIndex tile = TileVirtXY(v->x_pos, v->y_pos); if (!IsTileType(tile, MP_INDUSTRY)) { - EndVehicleMove(v); delete v; return; } @@ -68,7 +67,6 @@ static void SteamSmokeTick(Vehicle *v) if (v->cur_image != SPR_STEAM_SMOKE_4) { v->cur_image++; } else { - EndVehicleMove(v); delete v; return; } @@ -103,7 +101,6 @@ static void DieselSmokeTick(Vehicle *v) VehiclePositionChanged(v); EndVehicleMove(v); } else { - EndVehicleMove(v); delete v; } } @@ -127,7 +124,6 @@ static void ElectricSparkTick(Vehicle *v) VehiclePositionChanged(v); EndVehicleMove(v); } else { - EndVehicleMove(v); delete v; } } @@ -156,7 +152,6 @@ static void SmokeTick(Vehicle *v) if (v->cur_image != SPR_SMOKE_4) { v->cur_image++; } else { - EndVehicleMove(v); delete v; return; } @@ -185,7 +180,6 @@ static void ExplosionLargeTick(Vehicle *v) VehiclePositionChanged(v); EndVehicleMove(v); } else { - EndVehicleMove(v); delete v; } } @@ -213,8 +207,6 @@ static void BreakdownSmokeTick(Vehicle *v) v->u.effect.animation_state--; if (v->u.effect.animation_state == 0) { - BeginVehicleMove(v); - EndVehicleMove(v); delete v; } } @@ -235,7 +227,6 @@ static void ExplosionSmallTick(Vehicle *v) VehiclePositionChanged(v); EndVehicleMove(v); } else { - EndVehicleMove(v); delete v; } } @@ -306,7 +297,6 @@ static void BulldozerTick(Vehicle *v) v->u.effect.animation_substate = 0; v->u.effect.animation_state++; if (v->u.effect.animation_state == lengthof(_bulldozer_movement)) { - EndVehicleMove(v); delete v; return; } @@ -502,7 +492,6 @@ static void BubbleTick(Vehicle *v) const BubbleMovement *b = &_bubble_movement[v->spritenum - 1][anim_state]; if (b->y == 4 && b->x == 0) { - EndVehicleMove(v); delete v; return; } |