mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
(svn r21865) -Fix (r21862): don't perform savegame conversion when reinitialising some vehicle structures due to NewGRF changes
This commit is contained in:
parent
89a135293a
commit
6a2ae92811
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user