P_CheckPosition optimization

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8055
Joined: Sun Jan 28, 2007 3:55 pm

P_CheckPosition optimization

Post by Major Cooke »

Pull Request

A small code change. I noticed that the THRUACTORS flag is being needlessly checked throughout PIT_CheckThing for the actor that calls (P_)CheckPosition, so I modified it to not go through the actor checking loop if the actor passed through has the flag.

Also pushed the THRUACTORS flag check up higher over the distance check in PIT_CheckThing itself.

Return to “Closed Feature Suggestions”