From d3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b Mon Sep 17 00:00:00 2001 From: Eric Fry Date: Sat, 5 May 2018 21:58:47 +1000 Subject: ILLUSIONS: Replace actor flag magic values with enum definitions --- engines/illusions/bbdou/bbdou_credits.cpp | 2 +- engines/illusions/bbdou/illusions_bbdou.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/illusions/bbdou') diff --git a/engines/illusions/bbdou/bbdou_credits.cpp b/engines/illusions/bbdou/bbdou_credits.cpp index 3b651292d7..eb2377933f 100644 --- a/engines/illusions/bbdou/bbdou_credits.cpp +++ b/engines/illusions/bbdou/bbdou_credits.cpp @@ -107,7 +107,7 @@ void BbdouCredits::drawTextToControl(uint32 objectId, const char *text, uint ali control->fillActor(0); textDrawer.wrapText(font, wtext, &dimensions, Common::Point(0, 0), alignment, outText); textDrawer.drawText(_vm->_screen, control->_actor->_surface, 0, 0); - control->_actor->_flags |= 0x4000; + control->_actor->_flags |= Illusions::ACTOR_FLAG_4000; } diff --git a/engines/illusions/bbdou/illusions_bbdou.cpp b/engines/illusions/bbdou/illusions_bbdou.cpp index e3b0df2d07..4d54eb4edb 100644 --- a/engines/illusions/bbdou/illusions_bbdou.cpp +++ b/engines/illusions/bbdou/illusions_bbdou.cpp @@ -410,7 +410,7 @@ void IllusionsEngine_BBDOU::hideCursor() { void IllusionsEngine_BBDOU::cursorControlRoutine(Control *control, uint32 deltaTime) { control->_actor->_seqCodeValue1 = 100 * deltaTime; - if (control->_actor->_flags & 1) { + if (control->_actor->_flags & Illusions::ACTOR_FLAG_1) { switch (_cursor->_status) { case 2: // Unused nullsub_1(control); -- cgit v1.2.3