Moved the PointInSector functions into FLevelLocals
This commit is contained in:
parent
68667e5eaa
commit
60873bc5d6
38 changed files with 167 additions and 162 deletions
|
|
@ -295,7 +295,7 @@ DEFINE_ACTION_FUNCTION(AActor, GetZAt)
|
|||
double c = angle.Cos();
|
||||
pos = mobj->Vec2Offset(pos.X * c + pos.Y * s, pos.X * s - pos.Y * c);
|
||||
}
|
||||
sector_t *sec = P_PointInSector(pos);
|
||||
sector_t *sec = self->Level->PointInSector(pos);
|
||||
|
||||
if (sec)
|
||||
{
|
||||
|
|
@ -2302,7 +2302,7 @@ DEFINE_ACTION_FUNCTION(AActor, CheckLOF)
|
|||
range
|
||||
*/
|
||||
|
||||
sector_t *sec = P_PointInSector(pos);
|
||||
sector_t *sec = self->Level->PointInSector(pos);
|
||||
|
||||
if (range == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue