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); + } } //