- Duke: Change a few triple negations from the wrapper removal process.

This commit is contained in:
Mitchell Richters 2023-10-04 20:39:37 +11:00
parent 98e83fcc3a
commit 7498be6f5d
3 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ void hud_input(DDukePlayer* const p)
auto pact = p->GetActor();
i = p->aim_mode;
p->aim_mode = !!!(p->cmd.ucmd.actions & SB_AIMMODE);
p->aim_mode = !(p->cmd.ucmd.actions & SB_AIMMODE);
if (p->aim_mode < i)
p->cmd.ucmd.actions |= SB_CENTERVIEW;
@ -104,7 +104,7 @@ void hud_input(DDukePlayer* const p)
}
}
}
if (!!!(p->cmd.ucmd.actions & SB_QUICK_KICK)) p->quick_kick_msg = false;
if (!(p->cmd.ucmd.actions & SB_QUICK_KICK)) p->quick_kick_msg = false;
if (!(p->cmd.ucmd.actions & SB_INTERFACE_BITS))
p->interface_toggle_flag = 0;

View file

@ -312,7 +312,7 @@ void checksectors_d(DDukePlayer* const p)
return;
}
if (!!!(p->cmd.ucmd.actions & SB_OPEN)) return;
if (!(p->cmd.ucmd.actions & SB_OPEN)) return;
else if (p->newOwner != nullptr)
{
clearcameras(p);

View file

@ -340,7 +340,7 @@ void checksectors_r(DDukePlayer* const p)
}
}
if (!!!(p->cmd.ucmd.actions & SB_OPEN)) return;
if (!(p->cmd.ucmd.actions & SB_OPEN)) return;
if (near.hitWall == nullptr && near.hitSector == nullptr && near.actor() == nullptr)
if (hits(pact) < 32)