diff options
-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 |