This fixes the drawing order of the pillow and magazine in Reich's

apartment. Look out for regressions, though I haven't seen any yet myself.

svn-id: r8804
This commit is contained in:
Torbjörn Andersson 2003-07-06 15:56:13 +00:00
parent dfdebc39ae
commit 7de3870c13

View File

@ -520,7 +520,7 @@ void SkyScreen::sortSprites(void) {
if (spriteCnt > 1) { // bubble sort
for (uint32 cnt1 = 0; cnt1 < spriteCnt - 1; cnt1++)
for (uint32 cnt2 = cnt1 + 1; cnt2 < spriteCnt; cnt2++)
if (sortList[cnt1].yCood >= sortList[cnt2].yCood) {
if (sortList[cnt1].yCood > sortList[cnt2].yCood) {
StSortList tmp;
tmp.yCood = sortList[cnt1].yCood;
tmp.sprite = sortList[cnt1].sprite;