From 9dbd9c567e298f076be0b1ce0a87b3db5566e3c9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Jun 2017 13:39:13 -0400 Subject: TITANIC: Fix maintaining total playtime for savegames --- engines/titanic/events.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'engines/titanic/events.h') diff --git a/engines/titanic/events.h b/engines/titanic/events.h index 52e900c2ef..e14fbd8637 100644 --- a/engines/titanic/events.h +++ b/engines/titanic/events.h @@ -91,6 +91,7 @@ private: Common::Stack _eventTargets; uint32 _frameCounter; uint32 _priorFrameTime; + uint _totalFrames; Common::Point _mousePos; uint _specialButtons; @@ -147,10 +148,20 @@ public: uint32 getFrameCounter() const { return _frameCounter; } /** - * Get the elapsed playtime + * Return the current game ticks */ uint32 getTicksCount() const; + /** + * Get the total number of playtime frames/ticks + */ + uint32 getTotalPlayTicks() const; + + /** + * Set the total number of frames/ticks played + */ + void setTotalPlayTicks(uint frames); + /** * Sleep for a specified period of time */ -- cgit v1.2.3