mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-05 09:21:15 +00:00
Check slope flags explicitly instead of setting them directly (in case they ever change)
This commit is contained in:
parent
b358acc621
commit
b6ab1af424
1 changed files with 10 additions and 2 deletions
|
@ -256,7 +256,11 @@ static void line_SpawnViaLine(const int linenum, const boolean spawnthinker)
|
|||
boolean backfloor = line->args[0] == 2;
|
||||
boolean frontceil = line->args[1] == 1;
|
||||
boolean backceil = line->args[1] == 2;
|
||||
UINT8 flags = line->args[2]; // Slope flags
|
||||
UINT8 flags = 0; // Slope flags
|
||||
if (line->args[2] & 1)
|
||||
flags |= SL_NOPHYSICS;
|
||||
if (line->args[2] & 2)
|
||||
flags |= SL_DYNAMIC;
|
||||
|
||||
if(!frontfloor && !backfloor && !frontceil && !backceil)
|
||||
{
|
||||
|
@ -461,7 +465,11 @@ static void line_SpawnViaVertexes(const int linenum, const boolean spawnthinker)
|
|||
UINT16 tag1 = line->args[1];
|
||||
UINT16 tag2 = line->args[2];
|
||||
UINT16 tag3 = line->args[3];
|
||||
UINT8 flags = line->args[4];
|
||||
UINT8 flags = 0; // Slope flags
|
||||
if (line->args[4] & 1)
|
||||
flags |= SL_NOPHYSICS;
|
||||
if (line->args[4] & 2)
|
||||
flags |= SL_DYNAMIC;
|
||||
|
||||
switch(line->args[0])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue