(svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%.
This commit is contained in:
@@ -794,6 +794,21 @@ static bool RoadVehAccelerationModelChanged(int32 p1)
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function updates the road vehicle acceleration cache after a steepness change.
|
||||
* @param p1 Callback parameter.
|
||||
* @return Always true.
|
||||
*/
|
||||
static bool RoadVehSlopeSteepnessChanged(int32 p1)
|
||||
{
|
||||
RoadVehicle *rv;
|
||||
FOR_ALL_ROADVEHICLES(rv) {
|
||||
if (rv->IsRoadVehFront()) rv->CargoChanged();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool DragSignalsDensityChanged(int32)
|
||||
{
|
||||
InvalidateWindowData(WC_BUILD_SIGNAL, 0);
|
||||
|
Reference in New Issue
Block a user