From f9e7fa4c886029a5da84b35b0f168395088c877b Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 25 May 2008 19:29:24 +0000 Subject: (svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders --- src/order_cmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 77207ce3b..3e1f53f07 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -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); -- cgit v1.2.3-54-g00ecf