mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-20 15:40:56 +00:00
- Duke: Clean up player/actor accesses in checkcursectnums()
.
This commit is contained in:
parent
454c1bfec0
commit
a508dfff31
1 changed files with 5 additions and 5 deletions
|
@ -78,13 +78,13 @@ inline bool isablockdoor(FTextureID dapic)
|
|||
return tileflags(dapic) & TFLAG_BLOCKDOOR;
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline int checkcursectnums(sectortype* se)
|
||||
{
|
||||
int i;
|
||||
for(i=connecthead;i>=0;i=connectpoint2[i])
|
||||
if(getPlayer(i)->GetActor() && getPlayer(i)->GetActor()->sector() == se ) return i;
|
||||
for (int i = connecthead; i >= 0; i = connectpoint2[i])
|
||||
{
|
||||
const auto pact = getPlayer(i)->GetActor();
|
||||
if (pact && pact->sector() == se) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue