diff --git a/source/games/exhumed/src/aistuff.h b/source/games/exhumed/src/aistuff.h index 7ab400f48..62ce3e463 100644 --- a/source/games/exhumed/src/aistuff.h +++ b/source/games/exhumed/src/aistuff.h @@ -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); diff --git a/source/games/exhumed/src/move.cpp b/source/games/exhumed/src/move.cpp index 8e3ad361f..818101298 100644 --- a/source/games/exhumed/src/move.cpp +++ b/source/games/exhumed/src/move.cpp @@ -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;