From 2efee2ae8c1c4e285fe81bce66a594d9b949548a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Jul 2016 19:15:26 -0400 Subject: TITANIC: Further timers cleanup --- engines/titanic/support/time_event_info.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'engines/titanic/support/time_event_info.h') diff --git a/engines/titanic/support/time_event_info.h b/engines/titanic/support/time_event_info.h index 23d0d2b803..ee787bcbef 100644 --- a/engines/titanic/support/time_event_info.h +++ b/engines/titanic/support/time_event_info.h @@ -55,13 +55,11 @@ public: CTreeItem *_target; uint _actionVal; CString _action; - uint _field2C; - uint _field30; uint _timerCtr; uint _lastTimerTicks; uint _relativeTicks; bool _done; - uint _field44; + bool _persisent; CString _targetName; public: CLASSDEF @@ -96,7 +94,10 @@ public: bool update(uint ticks); - void set44(uint val) { _field44 = val; } + /** + * Flags whether the timer will be persisent across save & loads + */ + void setPersisent(bool val) { _persisent = val; } }; class CTimeEventInfoList : public List { @@ -126,7 +127,10 @@ public: */ void stop(uint id); - void set44(uint id, uint val); + /** + * Sets whether a timer with a given Id will be persisent across saves + */ + void setPersisent(uint id, bool flag); }; } // End of namespace Titanic -- cgit v1.2.3