(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user