Minor bug fixes.
This commit is contained in:
@@ -112,8 +112,9 @@ public class SpriteManager
|
||||
|
||||
public void Draw(SpriteBatch sb)
|
||||
{
|
||||
int n = Items.Count;
|
||||
for (int i = 0; i < n; i++)
|
||||
// Omega drew newest sprites first, so earlier-created sprites appear on top
|
||||
// (e.g. the missile turret gun is spawned before its base and must cover it)
|
||||
for (int i = Items.Count - 1; i >= 0; i--)
|
||||
if (!Items[i].IsDead)
|
||||
Items[i].Draw(sb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user