From 2f3b69e77022a74731f536bcf63aa73daa48ba2d Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Sun, 4 Oct 2015 16:12:35 -0500 Subject: [PATCH] Optimize a little more... --- src/thingdef/thingdef_codeptr.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 7dceb2923..7ba70c2ea 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -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); }