1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders

This commit is contained in:
smatz
2008-05-25 19:29:24 +00:00
parent 4625695653
commit f9e7fa4c88

View File

@@ -168,7 +168,9 @@ void Order::ConvertFromOldSavegame()
/* Then the load/depot action flags because those bits are going to be reused too /* Then the load/depot action flags because those bits are going to be reused too
* and they reuse the non-stop bits. */ * and they reuse the non-stop bits. */
if (this->GetType() != OT_GOTO_DEPOT) { 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); this->SetLoadType(OLF_LOAD_IF_POSSIBLE);
} else { } else {
this->SetLoadType(_settings.gui.sg_full_load_any ? OLF_FULL_LOAD_ANY : OLFB_FULL_LOAD); this->SetLoadType(_settings.gui.sg_full_load_any ? OLF_FULL_LOAD_ANY : OLFB_FULL_LOAD);