mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Xobjects editor wip
# Conflicts: # source/blood/src/mapedit.cpp
This commit is contained in:
parent
14401ca694
commit
599f086fd9
2 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue