From fad29236588528de3d6158f2ac80976d6195d8da Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Oct 2011 22:11:16 +1100 Subject: TSAGE: Initialise the inventory properly in Ringworld 2 --- engines/tsage/globals.cpp | 15 +++++++++++++++ engines/tsage/globals.h | 2 ++ 2 files changed, 17 insertions(+) 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 -- cgit v1.2.3