summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-11 22:19:27 +0000
committerterkhen <terkhen@openttd.org>2010-11-11 22:19:27 +0000
commit13685c0210b61fb87a8a23b80be09de737dd0499 (patch)
treeb6236253508c13317991844857260bc303c49bb6 /src
parentf3574a273b297c543284d139213cd14f9196c68f (diff)
downloadopenttd-13685c0210b61fb87a8a23b80be09de737dd0499.tar.xz
(svn r21148) -Fix (r21098): Evaluate callback 36 for ship speed as frequently as done for other vehicle types.
Diffstat (limited to 'src')
-rw-r--r--src/ship_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 3882dc8e3..5b4c7780a 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -211,6 +211,7 @@ Trackdir Ship::GetVehicleTrackdir() const
void Ship::MarkDirty()
{
this->UpdateViewport(false, false);
+ this->UpdateCache();
}
static void PlayShipSound(const Vehicle *v)