summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f56e220e3..4a5a98221 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -564,7 +564,7 @@ void RoadVehicle::MarkDirty()
{
for (Vehicle *v = this; v != NULL; v = v->Next()) {
v->cur_image = v->GetImage(v->direction);
- MarkAllViewportsDirty(v->left_coord, v->top_coord, v->right_coord + 1, v->bottom_coord + 1);
+ MarkSingleVehicleDirty(v);
}
}
@@ -615,8 +615,7 @@ static void DeleteLastRoadVeh(Vehicle *v)
if (IsTileType(v->tile, MP_STATION)) ClearCrashedStation(v);
- BeginVehicleMove(v);
- EndVehicleMove(v);
+ MarkSingleVehicleDirty(v);
delete v;
}
@@ -690,7 +689,7 @@ static void RoadVehCrash(Vehicle *v)
u->vehstatus |= VS_CRASHED;
- MarkAllViewportsDirty(u->left_coord, u->top_coord, u->right_coord + 1, u->bottom_coord + 1);
+ MarkSingleVehicleDirty(u);
}
ClearSlot(v);