diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 14:17:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 14:17:55 +0000 |
commit | 61ff042460410d5382db56c4af86db6c277f02e1 (patch) | |
tree | 0a6e1d4dbeb22d729165026bad54c3d200d601c9 /src/roadveh_cmd.cpp | |
parent | 9af570eab4335b6945bae122f93447d14b16154b (diff) | |
download | openttd-61ff042460410d5382db56c4af86db6c277f02e1.tar.xz |
(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 5fa694909..c1ad847dc 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -188,6 +188,9 @@ void RoadVehUpdateCache(RoadVehicle *v) u->rcache.cached_veh_length = GetRoadVehLength(u); v->rcache.cached_total_length += u->rcache.cached_veh_length; + /* Update visual effect */ + v->UpdateVisualEffect(); + /* Invalidate the vehicle colour map */ u->colourmap = PAL_NONE; } @@ -1477,6 +1480,8 @@ static bool RoadVehController(RoadVehicle *v) if (v->IsInDepot() && RoadVehLeaveDepot(v, true)) return true; + v->ShowVisualEffect(); + /* Check how far the vehicle needs to proceed */ int j = RoadVehAccelerate(v); |