diff options
author | Paul Gilbert | 2017-07-16 15:05:56 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-07-16 15:05:56 -0400 |
commit | 6c44b5762e6fa009c548f5dacdb422ccde958724 (patch) | |
tree | 6d34ebe056034bc4f8721da8b2a533ce3918b66a /engines | |
parent | 56384fb7dbd40627b26dc849c792b1af2f972973 (diff) | |
download | scummvm-rg350-6c44b5762e6fa009c548f5dacdb422ccde958724.tar.gz scummvm-rg350-6c44b5762e6fa009c548f5dacdb422ccde958724.tar.bz2 scummvm-rg350-6c44b5762e6fa009c548f5dacdb422ccde958724.zip |
TITANIC: Cleanup of CAutoAnimate class
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/game/auto_animate.cpp | 6 | ||||
-rw-r--r-- | engines/titanic/game/auto_animate.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/game/auto_animate.cpp b/engines/titanic/game/auto_animate.cpp index 16e6e56747..1256ecbc26 100644 --- a/engines/titanic/game/auto_animate.cpp +++ b/engines/titanic/game/auto_animate.cpp @@ -32,7 +32,7 @@ END_MESSAGE_MAP() void CAutoAnimate::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_enabled, indent); - file->writeNumberLine(_fieldE4, indent); + file->writeNumberLine(_redo, indent); file->writeNumberLine(_repeat, indent); CBackground::save(file, indent); } @@ -40,7 +40,7 @@ void CAutoAnimate::save(SimpleFile *file, int indent) { void CAutoAnimate::load(SimpleFile *file) { file->readNumber(); _enabled = file->readNumber(); - _fieldE4 = file->readNumber(); + _redo = file->readNumber(); _repeat = file->readNumber(); CBackground::load(file); } @@ -53,7 +53,7 @@ bool CAutoAnimate::EnterViewMsg(CEnterViewMsg *msg) { else playMovie(flags); - if (!_fieldE4) + if (!_redo) _enabled = false; } diff --git a/engines/titanic/game/auto_animate.h b/engines/titanic/game/auto_animate.h index 735aba922e..48764ad4aa 100644 --- a/engines/titanic/game/auto_animate.h +++ b/engines/titanic/game/auto_animate.h @@ -34,11 +34,11 @@ class CAutoAnimate : public CBackground { bool InitializeAnimMsg(CInitializeAnimMsg *msg); private: bool _enabled; - int _fieldE4; + bool _redo; bool _repeat; public: CLASSDEF; - CAutoAnimate() : CBackground(), _enabled(true), _fieldE4(1), _repeat(false) {} + CAutoAnimate() : CBackground(), _enabled(true), _redo(true), _repeat(false) {} /** * Save the data for the class to file |