(svn r21865) -Fix (r21862): don't perform savegame conversion when reinitialising some vehicle structures due to NewGRF changes
This commit is contained in:
@@ -296,6 +296,7 @@ void AfterLoadVehicles(bool part_of_load)
|
||||
}
|
||||
}
|
||||
|
||||
if (part_of_load) {
|
||||
if (IsSavegameVersionBefore(105)) {
|
||||
/* Before 105 there was no order for shared orders, thus it messed up horribly */
|
||||
FOR_ALL_VEHICLES(v) {
|
||||
@@ -324,6 +325,7 @@ void AfterLoadVehicles(bool part_of_load)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CheckValidVehicles();
|
||||
|
||||
@@ -360,7 +362,7 @@ void AfterLoadVehicles(bool part_of_load)
|
||||
}
|
||||
|
||||
/* Stop non-front engines */
|
||||
if (IsSavegameVersionBefore(112)) {
|
||||
if (part_of_load && IsSavegameVersionBefore(112)) {
|
||||
FOR_ALL_VEHICLES(v) {
|
||||
if (v->type == VEH_TRAIN) {
|
||||
Train *t = Train::From(v);
|
||||
|
Reference in New Issue
Block a user