diff options
author | Paul Gilbert | 2017-11-14 07:28:40 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-14 07:28:40 -0500 |
commit | a1eed0aa70cf6ecf252c52866cbeaf70b6bf7d80 (patch) | |
tree | 8867767c1dc694bc393fea704ea20a4afea4f12b /engines/xeen | |
parent | 3ac39075c81d13705905d915f00fdd58e110e173 (diff) | |
download | scummvm-rg350-a1eed0aa70cf6ecf252c52866cbeaf70b6bf7d80.tar.gz scummvm-rg350-a1eed0aa70cf6ecf252c52866cbeaf70b6bf7d80.tar.bz2 scummvm-rg350-a1eed0aa70cf6ecf252c52866cbeaf70b6bf7d80.zip |
XEEN: Added missing initialization for new games
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/party.h | 10 | ||||
-rw-r--r-- | engines/xeen/saves.cpp | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/engines/xeen/party.h b/engines/xeen/party.h index d32c6fd00a..a8eeb09e9c 100644 --- a/engines/xeen/party.h +++ b/engines/xeen/party.h @@ -97,11 +97,6 @@ private: void resetYearlyBits(); /** - * Resets the inventory that Blacksmiths sell - */ - void resetBlacksmithWares(); - - /** * Applies interest to any gold and gems in the player's bank account */ void giveBankInterest(); @@ -223,6 +218,11 @@ public: * Gives and/or takes amounts from various character and/or party properties */ bool giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int charIdx); + + /** + * Resets the inventory that Blacksmiths sell + */ + void resetBlacksmithWares(); }; } // End of namespace Xeen diff --git a/engines/xeen/saves.cpp b/engines/xeen/saves.cpp index f9a26b1d6b..1c0604249d 100644 --- a/engines/xeen/saves.cpp +++ b/engines/xeen/saves.cpp @@ -167,6 +167,11 @@ void SavesManager::reset() { Common::Serializer sChar(&fChar, nullptr); _party._roster.synchronize(sChar); fChar.close(); + + // Set any final initial values + _party.resetBlacksmithWares(); + _party._year = _vm->getGameID() == GType_WorldOfXeen ? 610 : 850; + _party._totalTime = 0; } void SavesManager::readCharFile() { |