summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-16 21:17:31 +0000
committersmatz <smatz@openttd.org>2008-01-16 21:17:31 +0000
commitac7bc24b0e46b6ab9c6a2f171677702d4b9dbfef (patch)
tree022a2d92b742035ec46b042383c3dcb37eefd6be /src/aircraft_cmd.cpp
parent69cb0090752ad51a6985c36956fcb632065f14bc (diff)
downloadopenttd-ac7bc24b0e46b6ab9c6a2f171677702d4b9dbfef.tar.xz
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index efd0700f6..f8122e33f 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1288,8 +1288,7 @@ static void HandleCrashedAircraft(Vehicle *v)
CLRBITS(st->airport_flags, RUNWAY_IN_OUT_block); // commuter airport
CLRBITS(st->airport_flags, RUNWAY_IN2_block); // intercontinental
- BeginVehicleMove(v);
- EndVehicleMove(v);
+ MarkSingleVehicleDirty(v);
DoDeleteAircraft(v);
}
@@ -1417,7 +1416,7 @@ void Aircraft::MarkDirty()
{
this->cur_image = this->GetImage(this->direction);
if (this->subtype == AIR_HELICOPTER) this->Next()->Next()->cur_image = GetRotorImage(this);
- MarkAllViewportsDirty(this->left_coord, this->top_coord, this->right_coord + 1, this->bottom_coord + 1);
+ MarkSingleVehicleDirty(this);
}
static void CrashAirplane(Vehicle *v)