aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/illusions.cpp
diff options
context:
space:
mode:
authorEric Fry2018-05-05 21:58:47 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitd3fbb0e8b97fbefa8a4ca019ea8689a98fcdc62b (patch)
tree4d52e7413bc884e3496580c587f003257f5d6a91 /engines/illusions/illusions.cpp
parent2f551cabbacf64d336a855ec087fb6e31c484161 (diff)
downloadscummvm-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/illusions.cpp')
-rw-r--r--engines/illusions/illusions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp
index cc8e769726..2317bd34ac 100644
--- a/engines/illusions/illusions.cpp
+++ b/engines/illusions/illusions.cpp
@@ -188,14 +188,14 @@ int IllusionsEngine::updateGraphics(uint flags) {
for (Controls::ItemsIterator it = _controls->_controls.begin(); it != _controls->_controls.end(); ++it) {
Control *control = *it;
Actor *actor = control->_actor;
- if (control->_pauseCtr == 0 && actor && (actor->_flags & 1) && !(actor->_flags & 0x0200)) {
+ if (control->_pauseCtr == 0 && actor && (actor->_flags & Illusions::ACTOR_FLAG_1) && !(actor->_flags & Illusions::ACTOR_FLAG_200)) {
Common::Point drawPosition = control->calcPosition(panPoint);
- if (actor->_flags & 0x2000) {
+ if (actor->_flags & Illusions::ACTOR_FLAG_2000) {
Frame *frame = &(*actor->_frames)[actor->_frameIndex - 1];
_screen->_decompressQueue->insert(&actor->_drawFlags, frame->_flags,
frame->_surfInfo._pixelSize, frame->_surfInfo._dimensions,
frame->_compressedPixels, actor->_surface);
- actor->_flags &= ~0x2000;
+ actor->_flags &= ~Illusions::ACTOR_FLAG_2000;
}
/* Unused
if (actor->_flags & 0x4000) {