some more cosmetic rearrangement

This commit is contained in:
Fabian Greffrath 2022-04-06 12:46:43 +02:00
parent 0e0a7d8d09
commit e2444ba859

View File

@ -687,14 +687,9 @@ static void InterceptsMemoryOverrun(int location, int value)
static void InterceptsOverrun(int num_intercepts, intercept_t *intercept) static void InterceptsOverrun(int num_intercepts, intercept_t *intercept)
{ {
int location; if (num_intercepts > MAXINTERCEPTS_ORIGINAL && demo_compatibility && emu_intercepts)
if (num_intercepts <= MAXINTERCEPTS_ORIGINAL || !(demo_compatibility && emu_intercepts))
{ {
// No overrun int location;
return;
}
if (num_intercepts == MAXINTERCEPTS_ORIGINAL + 1) if (num_intercepts == MAXINTERCEPTS_ORIGINAL + 1)
{ {
@ -715,6 +710,7 @@ static void InterceptsOverrun(int num_intercepts, intercept_t *intercept)
InterceptsMemoryOverrun(location + 4, intercept->isaline); InterceptsMemoryOverrun(location + 4, intercept->isaline);
InterceptsMemoryOverrun(location + 8, (intptr_t) intercept->d.thing); InterceptsMemoryOverrun(location + 8, (intptr_t) intercept->d.thing);
} }
}
// //
// P_PathTraverse // P_PathTraverse