- small stuff

This commit is contained in:
Christoph Oelckers 2021-09-17 15:52:44 +02:00
parent b1d15811c5
commit 1839634d79
2 changed files with 3 additions and 4 deletions

View file

@ -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);

View file

@ -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;