From e2444ba85939b14019a430e3a2764eb70398966e Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 6 Apr 2022 12:46:43 +0200 Subject: [PATCH] some more cosmetic rearrangement --- Source/p_maputl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/p_maputl.c b/Source/p_maputl.c index 78dd3d63..fea88e85 100644 --- a/Source/p_maputl.c +++ b/Source/p_maputl.c @@ -687,15 +687,10 @@ static void InterceptsMemoryOverrun(int location, int value) static void InterceptsOverrun(int num_intercepts, intercept_t *intercept) { + if (num_intercepts > MAXINTERCEPTS_ORIGINAL && demo_compatibility && emu_intercepts) + { int location; - if (num_intercepts <= MAXINTERCEPTS_ORIGINAL || !(demo_compatibility && emu_intercepts)) - { - // No overrun - - return; - } - if (num_intercepts == MAXINTERCEPTS_ORIGINAL + 1) { // [crispy] print a warning @@ -714,6 +709,7 @@ static void InterceptsOverrun(int num_intercepts, intercept_t *intercept) InterceptsMemoryOverrun(location, intercept->frac); InterceptsMemoryOverrun(location + 4, intercept->isaline); InterceptsMemoryOverrun(location + 8, (intptr_t) intercept->d.thing); + } } //