mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Optimize a little more...
This commit is contained in:
parent
154e023800
commit
2f3b69e770
1 changed files with 2 additions and 4 deletions
|
@ -5879,10 +5879,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckBlock)
|
|||
return;
|
||||
}
|
||||
|
||||
bool blockTest = P_TestMobjLocation(mobj);
|
||||
|
||||
//Nothing to block it so skip the rest.
|
||||
if (blockTest) return;
|
||||
if (P_TestMobjLocation(mobj)) return;
|
||||
|
||||
if (mobj->BlockingMobj)
|
||||
{
|
||||
|
@ -5902,7 +5900,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckBlock)
|
|||
return;
|
||||
|
||||
//[MC] Easiest way to tell if an actor is blocking it, use the pointers.
|
||||
if (!blockTest && (mobj->BlockingMobj || (!(flags & CBF_NOLINES) && mobj->BlockingLine != NULL)))
|
||||
if (mobj->BlockingMobj || (!(flags & CBF_NOLINES) && mobj->BlockingLine != NULL))
|
||||
{
|
||||
ACTION_JUMP(block);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue