mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- SW: Remove OFF
pre-processor define.
This commit is contained in:
parent
ae49a55fce
commit
3cf9450bd8
4 changed files with 5 additions and 6 deletions
|
@ -862,7 +862,7 @@ int UserBreakSprite(DSWActor* breakActor)
|
|||
{
|
||||
DoMatchEverything(nullptr, match_extra, -1);
|
||||
//DoSpawnSpotsForKill(match_extra);
|
||||
DoLightingMatch(match_extra, OFF);
|
||||
DoLightingMatch(match_extra, 0);
|
||||
|
||||
if (SP_TAG8(actor) == 0)
|
||||
{
|
||||
|
|
|
@ -193,7 +193,7 @@ void DoLightingMatch(short match, short state)
|
|||
LIGHT_DirChange(itActor);
|
||||
}
|
||||
}
|
||||
else if (state == OFF)
|
||||
else if (state == 0)
|
||||
{
|
||||
if (LIGHT_Dir(itActor) == 0)
|
||||
{
|
||||
|
@ -255,7 +255,7 @@ void DoLighting(void)
|
|||
while (auto itActor = it.Next())
|
||||
{
|
||||
// on/off test
|
||||
if (TEST_BOOL1(itActor) == OFF)
|
||||
if (TEST_BOOL1(itActor) == 0)
|
||||
continue;
|
||||
|
||||
switch (LIGHT_Type(itActor))
|
||||
|
|
|
@ -143,7 +143,7 @@ short DoSOevent(short match, short state)
|
|||
if (TEST_BOOL3(me_act))
|
||||
{
|
||||
RESET_BOOL3(me_act);
|
||||
state = OFF;
|
||||
state = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -157,7 +157,7 @@ short DoSOevent(short match, short state)
|
|||
spin_adj = (int)SP_TAG3(me_act);
|
||||
vel_adj = SP_TAG7(me_act);
|
||||
}
|
||||
else if (state == OFF)
|
||||
else if (state == 0)
|
||||
{
|
||||
spin_adj = -(int)SP_TAG3(me_act);
|
||||
vel_adj = -SP_TAG7(me_act);
|
||||
|
|
|
@ -30,7 +30,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
|||
|
||||
|
||||
|
||||
#define OFF 0
|
||||
#define ON 1
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue