Skip to content

Commit

Permalink
WAGE: Fix sorting of objects during move
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 11, 2016
1 parent 7cde2a3 commit f65b314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/wage/script.cpp
Expand Up @@ -1099,7 +1099,7 @@ struct Mapping {
{ "\?\?\?(0xf5)", OPCODE },
{ "\?\?\?(0xf6)", OPCODE },
{ "\?\?\?(0xf7)", OPCODE },
{ "\?\?\?(0xf8)", OPCODE }, // 0xa8
{ "\?\?\?(0xf8)", OPCODE }, // 0xf8
{ "\?\?\?(0xf9)", OPCODE },
{ "\?\?\?(0xfa)", OPCODE },
{ "\?\?\?(0xfb)", OPCODE },
Expand Down
2 changes: 1 addition & 1 deletion engines/wage/world.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit f65b314

Please sign in to comment.