- 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
|
|
@ -336,7 +336,7 @@ void AActor::LinkToWorld (bool buggy)
|
|||
|
||||
if (!buggy || numnodes == 0)
|
||||
{
|
||||
sec = R_PointInSubsector (x, y)->sector;
|
||||
sec = P_PointInSector (x, y);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -582,8 +582,7 @@ sector_t *AActor::LinkToWorldForMapThing ()
|
|||
distance = radius - distance;
|
||||
x += FixedMul(distance, finecosine[finean]);
|
||||
y += FixedMul(distance, finesine[finean]);
|
||||
ssec = R_PointInSubsector (x, y);
|
||||
break;
|
||||
return P_PointInSector (x, y);
|
||||
}
|
||||
#else
|
||||
if (DMulScale32 (y - ldef->v1->y, ldef->dx, ldef->v1->x - x, ldef->dy) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue