From f65b31437b81ab41a39142e626808083d0b96017 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 11 Apr 2016 10:33:19 +0200 Subject: WAGE: Fix sorting of objects during move --- engines/wage/script.cpp | 2 +- engines/wage/world.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index 294c08ed82..61336dce88 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -1099,7 +1099,7 @@ struct Mapping { { "\?\?\?(0xf5)", OPCODE }, { "\?\?\?(0xf6)", OPCODE }, { "\?\?\?(0xf7)", OPCODE }, - { "\?\?\?(0xf8)", OPCODE }, // 0xa8 + { "\?\?\?(0xf8)", OPCODE }, // 0xf8 { "\?\?\?(0xf9)", OPCODE }, { "\?\?\?(0xfa)", OPCODE }, { "\?\?\?(0xfb)", OPCODE }, diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index ae7a0ea6f5..7e7bc33712 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -433,7 +433,7 @@ static bool objComparator(const Obj *o1, const Obj *o2) { if (o1Immobile == o2Immobile) { return o1->_index - o2->_index; } - return o1Immobile; + return o1Immobile ? -1 : 1; } void World::move(Obj *obj, Scene *scene, bool skipSort) { -- cgit v1.2.3