mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
ASYLUM: original loops through the objects in reverse
This commit is contained in:
parent
982bd7c359
commit
cc41cfb459
@ -1495,7 +1495,7 @@ int32 Scene::hitTestObject() {
|
||||
|
||||
const Common::Point pt = getCursor()->position();
|
||||
|
||||
for (uint32 i = 0; i < _ws->objects.size(); i++) {
|
||||
for (int32 i = _ws->objects.size() - 1; i >= 0; i--) {
|
||||
Object *object = _ws->objects[i];
|
||||
if (object->isOnScreen() && object->actionType)
|
||||
if (hitTestPixel(object->getResourceId(),
|
||||
|
Loading…
Reference in New Issue
Block a user