summaryrefslogtreecommitdiff
path: root/src/ship_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/ship_cmd.cpp
parent69cb0090752ad51a6985c36956fcb632065f14bc (diff)
downloadopenttd-ac7bc24b0e46b6ab9c6a2f171677702d4b9dbfef.tar.xz
(svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 92af6e5ec..cae413356 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -229,7 +229,7 @@ static void HandleBrokenShip(Vehicle *v)
void Ship::MarkDirty()
{
this->cur_image = this->GetImage(this->direction);
- MarkAllViewportsDirty(this->left_coord, this->top_coord, this->right_coord + 1, this->bottom_coord + 1);
+ MarkSingleVehicleDirty(this);
}
static void PlayShipSound(const Vehicle *v)