diff options
author | Paul Gilbert | 2011-10-23 22:11:16 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-23 22:12:06 +1100 |
commit | fad29236588528de3d6158f2ac80976d6195d8da (patch) | |
tree | 758c4138e9f9baef336fadfea1c7ab7151a76f83 | |
parent | 32ed9a99e92b88be665a6012efa50c0e5666095d (diff) | |
download | scummvm-rg350-fad29236588528de3d6158f2ac80976d6195d8da.tar.gz scummvm-rg350-fad29236588528de3d6158f2ac80976d6195d8da.tar.bz2 scummvm-rg350-fad29236588528de3d6158f2ac80976d6195d8da.zip |
TSAGE: Initialise the inventory properly in Ringworld 2
-rw-r--r-- | engines/tsage/globals.cpp | 15 | ||||
-rw-r--r-- | engines/tsage/globals.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/tsage/globals.cpp b/engines/tsage/globals.cpp index abbabf6d6f..7711e7fba7 100644 --- a/engines/tsage/globals.cpp +++ b/engines/tsage/globals.cpp @@ -350,4 +350,19 @@ bool BlueForceGlobals::removeFlag(int flagNum) { } // end of namespace BlueForce +namespace Ringworld2 { + +void Ringworld2Globals::reset() { + Globals::reset(); + + // Reset the inventory + R2_INVENTORY.reset(); + T2_GLOBALS._uiElements.updateInventory(); + T2_GLOBALS._uiElements._active = false; +} + + + +} // end of namespace Ringworld2 + } // end of namespace TsAGE diff --git a/engines/tsage/globals.h b/engines/tsage/globals.h index 35e4bca6c4..a5293a5ad1 100644 --- a/engines/tsage/globals.h +++ b/engines/tsage/globals.h @@ -241,6 +241,8 @@ namespace Ringworld2 { class Ringworld2Globals: public TsAGE2Globals { public: ASoundExt _sound1, _sound2, _sound3, _sound4; + + virtual void reset(); }; } // End of namespace Ringworld2 |