mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
corrected overlay z-order based on bottom coordinate (fixes chair in captain's room, and RGB chief table z-order)
svn-id: r45950
This commit is contained in:
parent
6132537908
commit
c331ad155d
@ -637,6 +637,12 @@ bool Scene::render(OSystem *system) {
|
||||
}
|
||||
}
|
||||
|
||||
if (on.pixels != NULL && on.y + on.h < actor_animation_position.bottom && debug_features.feature[DebugFeatures::kShowOn]) {
|
||||
if (_id != 16 || getOns(16)[0] != 0) {
|
||||
on.render(surface); //do not render boat on isle. I double checked all callbacks, there's no code switching off the boat :(
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
Surface *mark = actor_animation.currentFrame();
|
||||
if (mark != NULL) {
|
||||
@ -692,7 +698,7 @@ bool Scene::render(OSystem *system) {
|
||||
}
|
||||
|
||||
//render on
|
||||
if (on.pixels != NULL && debug_features.feature[DebugFeatures::kShowOn]) {
|
||||
if (on.pixels != NULL && on.y + on.h >= actor_animation_position.bottom && debug_features.feature[DebugFeatures::kShowOn]) {
|
||||
if (_id != 16 || getOns(16)[0] != 0) {
|
||||
on.render(surface); //do not render boat on isle. I double checked all callbacks, there's no code switching off the boat :(
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user