diff options
author | uruk | 2014-06-07 19:40:29 +0200 |
---|---|---|
committer | uruk | 2014-06-07 19:40:29 +0200 |
commit | 23d40712c6c7af0977fe2d38751f922e30a8b3b6 (patch) | |
tree | 95755b559cfc701156861c7047c96bffb9b27090 /engines/cge2 | |
parent | 968f24af4787563c27c839ada08d4772b1ecd1b9 (diff) | |
download | scummvm-rg350-23d40712c6c7af0977fe2d38751f922e30a8b3b6.tar.gz scummvm-rg350-23d40712c6c7af0977fe2d38751f922e30a8b3b6.tar.bz2 scummvm-rg350-23d40712c6c7af0977fe2d38751f922e30a8b3b6.zip |
CGE2: Refine implementation of Queue::insert().
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/vga13h.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp index b8fe54d437..60323913a8 100644 --- a/engines/cge2/vga13h.cpp +++ b/engines/cge2/vga13h.cpp @@ -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) |