mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
CGE2: Refine implementation of Queue::insert().
This commit is contained in:
parent
968f24af47
commit
23d40712c6
@ -696,6 +696,9 @@ void Queue::insert(Sprite *spr, Sprite *nxt) {
|
||||
}
|
||||
|
||||
void Queue::insert(Sprite *spr) {
|
||||
if (locate(spr))
|
||||
return; // We only queue it if it's not already queued.
|
||||
|
||||
Sprite *s;
|
||||
for (s = _head; s; s = s->_next)
|
||||
if (s->_pos3D._z < spr->_pos3D._z)
|
||||
|
Loading…
x
Reference in New Issue
Block a user