From 444c6bd24a3b91a1b87e0a0377bd842344cadfb7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 17 Apr 2014 19:28:45 -0400 Subject: PEGASUS: Reset item state upon starting a new game --- engines/pegasus/items/item.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/pegasus/items/item.h') diff --git a/engines/pegasus/items/item.h b/engines/pegasus/items/item.h index a1451b2a58..26cccf043c 100644 --- a/engines/pegasus/items/item.h +++ b/engines/pegasus/items/item.h @@ -339,6 +339,9 @@ public: void findItemExtra(const uint32 extraID, ItemExtraEntry &entry); + // Reset to its original state at the beginning of the game + void reset(); + protected: NeighborhoodID _itemNeighborhood; RoomID _itemRoom; @@ -347,6 +350,10 @@ protected: WeightType _itemWeight; ItemState _itemState; + NeighborhoodID _originalNeighborhood; + RoomID _originalRoom; + DirectionConstant _originalDirection; + JMPItemInfo _itemInfo; ItemStateInfo _sharedAreaInfo; ItemExtraInfo _itemExtras; -- cgit v1.2.3