diff options
Diffstat (limited to 'engines/titanic/game/floor_indicator.cpp')
-rw-r--r-- | engines/titanic/game/floor_indicator.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/game/floor_indicator.cpp b/engines/titanic/game/floor_indicator.cpp index 360232c38c..3afb03c59d 100644 --- a/engines/titanic/game/floor_indicator.cpp +++ b/engines/titanic/game/floor_indicator.cpp @@ -21,9 +21,14 @@ */ #include "titanic/game/floor_indicator.h" +#include "titanic/pet_control/pet_control.h" namespace Titanic { +BEGIN_MESSAGE_MAP(CFloorIndicator, CGameObject) + ON_MESSAGE(EnterViewMsg) +END_MESSAGE_MAP() + void CFloorIndicator::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CGameObject::save(file, indent); @@ -34,4 +39,10 @@ void CFloorIndicator::load(SimpleFile *file) { CGameObject::load(file); } +bool CFloorIndicator::EnterViewMsg(CEnterViewMsg *msg) { + int floorNum = MAX(1, getPetControl()->getRoomsFloorNum()); + loadFrame(floorNum - 1); + return true; +} + } // End of namespace Titanic |