diff options
author | Eric Fry | 2018-05-05 21:58:47 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | d3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b (patch) | |
tree | 4d52e7413bc884e3496580c587f003257f5d6a91 /engines/illusions/cursor.cpp | |
parent | 2f551cabbacf64d336a855ec087fb6e31c484161 (diff) | |
download | scummvm-rg350-d3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b.tar.gz scummvm-rg350-d3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b.tar.bz2 scummvm-rg350-d3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b.zip |
ILLUSIONS: Replace actor flag magic values with enum definitions
Diffstat (limited to 'engines/illusions/cursor.cpp')
-rw-r--r-- | engines/illusions/cursor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/illusions/cursor.cpp b/engines/illusions/cursor.cpp index 962ea93336..0cb6ff7ed8 100644 --- a/engines/illusions/cursor.cpp +++ b/engines/illusions/cursor.cpp @@ -62,10 +62,10 @@ void Cursor::show() { ++_visibleCtr; if (_visibleCtr > 0) { _control->_flags |= 1; - _control->_actor->_flags |= 1; + _control->_actor->_flags |= Illusions::ACTOR_FLAG_1; if (_control->_actor->_frameIndex) { - _control->_actor->_flags |= 0x2000; - _control->_actor->_flags |= 0x4000; + _control->_actor->_flags |= Illusions::ACTOR_FLAG_2000; + _control->_actor->_flags |= Illusions::ACTOR_FLAG_4000; } _vm->_input->discardAllEvents(); } @@ -75,7 +75,7 @@ void Cursor::hide() { --_visibleCtr; if (_visibleCtr <= 0) { _control->_flags &= ~1; - _control->_actor->_flags &= ~1; + _control->_actor->_flags &= ~Illusions::ACTOR_FLAG_1; } } |