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