mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- small stuff
This commit is contained in:
parent
b1d15811c5
commit
1839634d79
2 changed files with 3 additions and 4 deletions
|
@ -248,7 +248,6 @@ void FuncCreatureChunk(int a, int, int nRun);
|
|||
int FindPlayer(int nSprite, int nDistance);
|
||||
int BuildCreatureChunk(int nVal, int nPic);
|
||||
void BuildNear(int x, int y, int walldist, int nSector);
|
||||
int BelowNear(short nSprite);
|
||||
int PlotCourseToSprite(int nSprite1, int nSprite2);
|
||||
void CheckSectorFloor(short nSector, int z, int *x, int *y);
|
||||
int GetAngleToSprite(int nSprite1, int nSprite2);
|
||||
|
|
|
@ -1302,13 +1302,13 @@ int GetWallNormal(short nWall)
|
|||
|
||||
void WheresMyMouth(int nPlayer, int *x, int *y, int *z, short *sectnum)
|
||||
{
|
||||
int nSprite = PlayerList[nPlayer].nSprite;
|
||||
auto pSprite = &sprite[nSprite];
|
||||
auto pActor = PlayerList[nPlayer].Actor();
|
||||
auto pSprite = &pActor->s();
|
||||
|
||||
*x = pSprite->x;
|
||||
*y = pSprite->y;
|
||||
|
||||
int height = GetSpriteHeight(nSprite) / 2;
|
||||
int height = GetSpriteHeight(pActor) / 2;
|
||||
|
||||
*z = pSprite->z - height;
|
||||
*sectnum = pSprite->sectnum;
|
||||
|
|
Loading…
Reference in a new issue