You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i fixed the issue, not sure if this is correct however because i figured it out by trial and error. i cannot find any documentation for this either...
the issue
object priority is set whenever a opaque pixel is drawn to the screen. this prevents further objects to be drawn to that pixel if their priority is >=.
the fix
it seems that the priority is always set for non-window objects, regardless of the pixel being opaque or not. furthermore, an opaque object will always overwrite a transparent object, regardless of priority.
this means that the check
if (line.priority[x] <= obj.priority) { continue }
becomes
if (line.priority[x] >= obj.priority&&line.is_opaque[x] ) { continue }
and as for setting the priority
if (obj.opaque) { line.priority[x] =obj.priority; }
becomes
if (obj.priority<line.priority[x]) { line.priority[x] =obj.priority; }
NOTE: i don't think the priority is set if the object is a window, although i may be wrong.
this seems to be a priority issue. normally bg2 is prio 2 and link is either prio 2 or higher.
when walking down stairs, bg2 remains the same however it seems the the priority of the object is changed, causing link the vanish.
by disabling bg2, we can see that link is still there.
The text was updated successfully, but these errors were encountered: