ILLUSIONS: Replace actor flag magic values with enum definitions

This commit is contained in:
Eric Fry 2018-05-05 21:58:47 +10:00 committed by Eugene Sandulenko
parent 2f551cabba
commit d3fbb0e8b9
9 changed files with 114 additions and 95 deletions

View file

@ -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;
}
}