CGE2: Refine implementation of Queue::insert().

This commit is contained in:
uruk 2014-06-07 19:40:29 +02:00
parent 968f24af47
commit 23d40712c6

View File

@ -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)