mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-27 07:10:24 +00:00
51 lines
624 B
C++
51 lines
624 B
C++
#include "backgrnd.h"
|
|
#include "ob.h"
|
|
|
|
static CSuper* BackgroundList;
|
|
|
|
// @NotOk
|
|
// global
|
|
void Backgrnd_On(unsigned __int16 a1)
|
|
{
|
|
|
|
CSuper* cur = BackgroundList;
|
|
if (cur)
|
|
{
|
|
while (cur)
|
|
{
|
|
if (cur->field_F8 != a1)
|
|
{
|
|
cur = reinterpret_cast<CSuper*>(cur->field_20);
|
|
}
|
|
else
|
|
{
|
|
cur->mFlags &= 0xFFFE;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// @NotOk
|
|
// global
|
|
void Backgrnd_Off(unsigned __int16 a1)
|
|
{
|
|
|
|
CSuper* cur = BackgroundList;
|
|
if (cur)
|
|
{
|
|
while (cur)
|
|
{
|
|
if (cur->field_F8 != a1)
|
|
{
|
|
cur = reinterpret_cast<CSuper*>(cur->field_20);
|
|
}
|
|
else
|
|
{
|
|
cur->mFlags |= 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|