diff --git a/source/blood/src/actor.h b/source/blood/src/actor.h index 2b61c5e4a..bf25fa7cb 100644 --- a/source/blood/src/actor.h +++ b/source/blood/src/actor.h @@ -177,18 +177,6 @@ extern int gDudeDrag; extern short gAffectedSectors[kMaxSectors]; extern short gAffectedXWalls[kMaxXWalls]; -inline void GetSpriteExtents(spritetype *pSprite, int *top, int *bottom) -{ - *top = *bottom = pSprite->z; - if ((pSprite->cstat & 0x30) != 0x20) - { - int height = tilesiz[pSprite->picnum].y; - int center = height / 2 + picanm[pSprite->picnum].yofs; - *top -= (pSprite->yrepeat << 2)*center; - *bottom += (pSprite->yrepeat << 2)*(height - center); - } -} - inline bool IsPlayerSprite(spritetype *pSprite) { diff --git a/source/blood/src/db.h b/source/blood/src/db.h index 537e6fb9f..4f8cda8d1 100644 --- a/source/blood/src/db.h +++ b/source/blood/src/db.h @@ -293,6 +293,18 @@ static inline int GetWallType(int nWall) return wall[nWall].lotag; } +inline void GetSpriteExtents(spritetype *pSprite, int *top, int *bottom) +{ + *top = *bottom = pSprite->z; + if ((pSprite->cstat & 0x30) != 0x20) + { + int height = tilesiz[pSprite->picnum].y; + int center = height / 2 + picanm[pSprite->picnum].yofs; + *top -= (pSprite->yrepeat << 2)*center; + *bottom += (pSprite->yrepeat << 2)*(height - center); + } +} + void InsertSpriteSect(int nSprite, int nSector); void RemoveSpriteSect(int nSprite); void InsertSpriteStat(int nSprite, int nStat);