From 61ff042460410d5382db56c4af86db6c277f02e1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 18 Nov 2010 14:17:55 +0000 Subject: (svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo) --- src/roadveh_cmd.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/roadveh_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf