(svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo)
This commit is contained in:
@@ -156,6 +156,8 @@ static void CheckIfShipNeedsService(Vehicle *v)
|
||||
void Ship::UpdateCache()
|
||||
{
|
||||
this->vcache.cached_max_speed = GetVehicleProperty(this, PROP_SHIP_SPEED, ShipVehInfo(this->engine_type)->max_speed);
|
||||
|
||||
this->UpdateVisualEffect();
|
||||
}
|
||||
|
||||
Money Ship::GetRunningCost() const
|
||||
@@ -446,6 +448,8 @@ static void ShipController(Ship *v)
|
||||
|
||||
CheckShipLeaveDepot(v);
|
||||
|
||||
v->ShowVisualEffect();
|
||||
|
||||
if (!ShipAccelerate(v)) return;
|
||||
|
||||
GetNewVehiclePosResult gp = GetNewVehiclePos(v);
|
||||
|
Reference in New Issue
Block a user