(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)

This commit is contained in:
rubidium
2010-11-18 14:17:55 +00:00
parent 8ed1333952
commit 1c7940255a
3 changed files with 10 additions and 1 deletions

View File

@@ -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);