From 913546593df8e35f199a686d6ed2f8d2ee4d96bc Mon Sep 17 00:00:00 2001 From: Eric Fry Date: Tue, 1 Sep 2020 22:45:23 +1000 Subject: [PATCH] DRAGONS: Fixed Flicker sprite priority when walking off screen. Trac#11642 --- engines/dragons/dragons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/dragons/dragons.cpp b/engines/dragons/dragons.cpp index 16e608daf07..11c0aa3e6be 100644 --- a/engines/dragons/dragons.cpp +++ b/engines/dragons/dragons.cpp @@ -689,7 +689,7 @@ void DragonsEngine::updateHandler() { int16 priority = _scene->getPriorityAtPosition(Common::Point(actor->_x_pos, actor->_y_pos)); DragonINI *flicker = _dragonINIResource->getFlickerRecord(); if (flicker && _scene->contains(flicker) && flicker->actor->_actorID == i) { - if (priority < 8 || priority == 0x10) { + if ((priority >= 0 && priority < 8) || priority == 0x10) { actor->_priorityLayer = priority; } } else {