From 348b2d4b4bf9c6e8c6ca134ce7968eb9e9521a9c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 30 Mar 2016 21:01:51 -0400 Subject: TITANIC: Fleshing out CPetVal --- engines/titanic/core/game_object.cpp | 4 ++++ engines/titanic/core/game_object.h | 1 + 2 files changed, 5 insertions(+) (limited to 'engines/titanic/core') diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 759c853759..bb1541c275 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -375,4 +375,8 @@ int CGameObject::getMovie19() const { return _field78; } +int CGameObject::getSurface45() const { + return _surface ? _surface->proc45() : 0; +} + } // End of namespace Titanic diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index 68ddf9745d..bacb73074d 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -166,6 +166,7 @@ public: bool hasActiveMovie() const; int getMovie19() const; + int getSurface45() const; /** * Loads a frame -- cgit v1.2.3