(svn r22073) -Fix: immediately update the train weight when you change the multiplier for train cargo weight

This commit is contained in:
yexo
2011-02-13 20:45:17 +00:00
parent 6a58f34878
commit f1377a228f
2 changed files with 13 additions and 1 deletions

View File

@@ -1146,6 +1146,17 @@ static bool StationCatchmentChanged(int32 p1)
return true;
}
static bool MarkAllTrainsDirty(int32 p1)
{
Train *t;
FOR_ALL_TRAINS(t) {
if (t->IsPrimaryVehicle()) t->MarkDirty();
}
SetWindowClassesDirty(WC_VEHICLE_DETAILS);
return true;
}
#ifdef ENABLE_NETWORK
static bool UpdateClientName(int32 p1)