mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders
This commit is contained in:
parent
4625695653
commit
f9e7fa4c88
@ -168,7 +168,9 @@ void Order::ConvertFromOldSavegame()
|
||||
/* Then the load/depot action flags because those bits are going to be reused too
|
||||
* and they reuse the non-stop bits. */
|
||||
if (this->GetType() != OT_GOTO_DEPOT) {
|
||||
if ((this->flags & 4) == 0) {
|
||||
if ((this->flags & 2) != 0) {
|
||||
this->SetLoadType(OLFB_NO_LOAD);
|
||||
} else if ((this->flags & 4) == 0) {
|
||||
this->SetLoadType(OLF_LOAD_IF_POSSIBLE);
|
||||
} else {
|
||||
this->SetLoadType(_settings.gui.sg_full_load_any ? OLF_FULL_LOAD_ANY : OLFB_FULL_LOAD);
|
||||
|
Loading…
Reference in New Issue
Block a user