mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
some more cosmetic rearrangement
This commit is contained in:
parent
0e0a7d8d09
commit
e2444ba859
@ -687,15 +687,10 @@ 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)
|
||||||
{
|
{
|
||||||
|
if (num_intercepts > MAXINTERCEPTS_ORIGINAL && demo_compatibility && emu_intercepts)
|
||||||
|
{
|
||||||
int location;
|
int location;
|
||||||
|
|
||||||
if (num_intercepts <= MAXINTERCEPTS_ORIGINAL || !(demo_compatibility && emu_intercepts))
|
|
||||||
{
|
|
||||||
// No overrun
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (num_intercepts == MAXINTERCEPTS_ORIGINAL + 1)
|
if (num_intercepts == MAXINTERCEPTS_ORIGINAL + 1)
|
||||||
{
|
{
|
||||||
// [crispy] print a warning
|
// [crispy] print a warning
|
||||||
@ -714,6 +709,7 @@ static void InterceptsOverrun(int num_intercepts, intercept_t *intercept)
|
|||||||
InterceptsMemoryOverrun(location, intercept->frac);
|
InterceptsMemoryOverrun(location, intercept->frac);
|
||||||
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user