@@ -691,25 +691,25 @@ static bool InvalidateTownViewWindow(int
static bool DeleteSelectStationWindow(int32 p1)
{
DeleteWindowById(WC_SELECT_STATION, 0);
return true;
}
static bool UpdateConsists(int32 p1)
Train *t;
FOR_ALL_TRAINS(t) {
/* Update the consist of all trains so the maximum speed is set correctly. */
if (IsFrontEngine(t) || IsFreeWagon(t)) TrainConsistChanged(t, true);
if (t->IsFrontEngine() || IsFreeWagon(t)) TrainConsistChanged(t, true);
/* Check service intervals of vehicles, p1 is value of % or day based servicing */
static bool CheckInterval(int32 p1)
VehicleDefaultSettings *vds;
if (_game_mode == GM_MENU || !Company::IsValidID(_current_company)) {
vds = &_settings_client.company.vehicle;
} else {
vds = &Company::Get(_current_company)->settings.vehicle;
@@ -727,25 +727,25 @@ static bool CheckInterval(int32 p1)
vds->servint_ships = 100;
InvalidateDetailsWindow(0);
static bool TrainAccelerationModelChanged(int32 p1)
if (IsFrontEngine(t)) {
if (t->IsFrontEngine()) {
t->tcache.cached_max_curve_speed = GetTrainCurveSpeedLimit(t);
UpdateTrainAcceleration(t);
static bool DragSignalsDensityChanged(int32)
SetWindowDirty(FindWindowById(WC_BUILD_SIGNAL, 0));