- added a P_PointInSector function and replaced all calls to retrieve an
actor's sector in the game engine code with it. This way there's a clear distinction between renderer-specific and game-specific calls. SVN r638 (trunk)
This commit is contained in:
parent
2e11d31bb5
commit
faa9cc4302
11 changed files with 47 additions and 30 deletions
|
|
@ -1247,7 +1247,7 @@ bool G_CheckSpot (int playernum, mapthing2_t *mthing)
|
|||
y = mthing->y << FRACBITS;
|
||||
z = mthing->z << FRACBITS;
|
||||
|
||||
z += R_PointInSubsector (x, y)->sector->floorplane.ZatPoint (x, y);
|
||||
z += P_PointInSector (x, y)->floorplane.ZatPoint (x, y);
|
||||
|
||||
if (!players[playernum].mo)
|
||||
{ // first spawn of level, before corpses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue