(svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%.

This commit is contained in:
terkhen
2010-03-06 12:58:33 +00:00
parent c958c2c31f
commit b443a3ee0a
7 changed files with 22 additions and 3 deletions

View File

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