TSAGE: Initialise the inventory properly in Ringworld 2

This commit is contained in:
Paul Gilbert 2011-10-23 22:11:16 +11:00
parent 32ed9a99e9
commit fad2923658
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -241,6 +241,8 @@ namespace Ringworld2 {
class Ringworld2Globals: public TsAGE2Globals {
public:
ASoundExt _sound1, _sound2, _sound3, _sound4;
virtual void reset();
};
} // End of namespace Ringworld2