Skip to content

Commit

Permalink
- fixed debrisGetFreeIndex.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 7, 2021
1 parent 37a7a0b commit d5b26fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/games/blood/src/nnexts.cpp
Expand Up @@ -1603,8 +1603,9 @@ int debrisGetFreeIndex(void)
{
for (int i = 0; i < kMaxSuperXSprites; i++)
{
if (gPhysSpritesList[i] == nullptr) return i;
auto spr = &gPhysSpritesList[i]->s();
if (gPhysSpritesList[i] == nullptr || spr->statnum == kStatFree) return i;
if (spr->statnum == kStatFree) return i;

else if ((spr->flags & kHitagFree) || !gPhysSpritesList[i]->hasX()) return i;
else if (gPhysSpritesList[i]->x().physAttr == 0) return i;
Expand Down

0 comments on commit d5b26fc

Please sign in to comment.