Simplified checks for ML_NETONLY and ML_NONET
This commit is contained in:
parent
a5074a846b
commit
5b741d8232
|
@ -6476,13 +6476,13 @@ void P_SpawnSpecials(INT32 fromnetsave)
|
||||||
// set line specials to 0 here too, same reason as above
|
// set line specials to 0 here too, same reason as above
|
||||||
if (netgame || multiplayer)
|
if (netgame || multiplayer)
|
||||||
{
|
{
|
||||||
if ((lines[i].flags & ML_NONET) == ML_NONET)
|
if (lines[i].flags & ML_NONET)
|
||||||
{
|
{
|
||||||
lines[i].special = 0;
|
lines[i].special = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((lines[i].flags & ML_NETONLY) == ML_NETONLY)
|
else if (lines[i].flags & ML_NETONLY)
|
||||||
{
|
{
|
||||||
lines[i].special = 0;
|
lines[i].special = 0;
|
||||||
continue;
|
continue;
|
||||||
|
@ -9204,10 +9204,10 @@ static void P_SearchForDisableLinedefs(void)
|
||||||
|
|
||||||
if (netgame || multiplayer)
|
if (netgame || multiplayer)
|
||||||
{
|
{
|
||||||
if ((lines[i].flags & ML_NONET) == ML_NONET)
|
if (lines[i].flags & ML_NONET)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ((lines[i].flags & ML_NETONLY) == ML_NETONLY)
|
else if (lines[i].flags & ML_NETONLY)
|
||||||
continue; // Net-only never triggers in single player
|
continue; // Net-only never triggers in single player
|
||||||
|
|
||||||
// Disable any linedef specials with our tag.
|
// Disable any linedef specials with our tag.
|
||||||
|
|
Loading…
Reference in New Issue