mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r22058) -Fix (r22050): removing broken orders happened before the "front engine" conversion was done for road vehicles, so road vehicles didn't have orders anymore
This commit is contained in:
parent
13fd2cd335
commit
b187352663
@ -289,12 +289,6 @@ void AfterLoadVehicles(bool part_of_load)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* In some old savegames there might be some "crap" stored. */
|
|
||||||
if (IsSavegameVersionBefore(160) && !v->IsPrimaryVehicle()) {
|
|
||||||
v->current_order.Free();
|
|
||||||
v->unitnumber = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,6 +330,16 @@ void AfterLoadVehicles(bool part_of_load)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsSavegameVersionBefore(160)) {
|
||||||
|
/* In some old savegames there might be some "crap" stored. */
|
||||||
|
FOR_ALL_VEHICLES(v) {
|
||||||
|
if (!v->IsPrimaryVehicle()) {
|
||||||
|
v->current_order.Free();
|
||||||
|
v->unitnumber = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckValidVehicles();
|
CheckValidVehicles();
|
||||||
|
Loading…
Reference in New Issue
Block a user