- Duke: Remove a few remaining triple negations missed in 7498be6f5d.

This commit is contained in:
Mitchell Richters 2023-11-08 16:13:44 +11:00
parent 489e535992
commit fd394cddad
4 changed files with 6 additions and 6 deletions

View file

@ -2010,13 +2010,13 @@ int ParseState::parse(void)
j = 1;
else if( (l& pstanding) && vel >= 0 && vel < 0.5)
j = 1;
else if( (l& pwalking) && vel >= 0.5 && !(!!(p->cmd.ucmd.actions & SB_RUN)) )
else if( (l& pwalking) && vel >= 0.5 && !(p->cmd.ucmd.actions & SB_RUN) )
j = 1;
else if( (l& prunning) && vel >= 0.5 && !!(p->cmd.ucmd.actions & SB_RUN) )
j = 1;
else if( (l& phigher) && pact->getOffsetZ() < g_ac->spr.pos.Z - 48)
j = 1;
else if( (l& pwalkingback) && vel <= -0.5 && !(!!(p->cmd.ucmd.actions & SB_RUN)) )
else if( (l& pwalkingback) && vel <= -0.5 && !(p->cmd.ucmd.actions & SB_RUN) )
j = 1;
else if( (l& prunningback) && vel <= -0.5 && (!!(p->cmd.ucmd.actions & SB_RUN)) )
j = 1;

View file

@ -1342,13 +1342,13 @@ int checkp(DDukeActor* self, DDukePlayer* p, int flags)
j = 1;
else if ((flags & pstanding) && vel >= 0 && vel < 0.5)
j = 1;
else if ((flags & pwalking) && vel >= 0.5 && !(!!(p->cmd.ucmd.actions & SB_RUN)))
else if ((flags & pwalking) && vel >= 0.5 && !(p->cmd.ucmd.actions & SB_RUN))
j = 1;
else if ((flags & prunning) && vel >= 0.5 && !!(p->cmd.ucmd.actions & SB_RUN))
j = 1;
else if ((flags & phigher) && pact->getOffsetZ() < self->spr.pos.Z - 48)
j = 1;
else if ((flags & pwalkingback) && vel <= -0.5 && !(!!(p->cmd.ucmd.actions & SB_RUN)))
else if ((flags & pwalkingback) && vel <= -0.5 && !(p->cmd.ucmd.actions & SB_RUN))
j = 1;
else if ((flags & prunningback) && vel <= -0.5 && (!!(p->cmd.ucmd.actions & SB_RUN)))
j = 1;

View file

@ -240,7 +240,7 @@ void checksectors_d(DDukePlayer* const p)
}
}
if (!(!!(p->cmd.ucmd.actions & SB_OPEN)))
if (!(p->cmd.ucmd.actions & SB_OPEN))
p->toggle_key_flag = 0;
else if (!p->toggle_key_flag)

View file

@ -210,7 +210,7 @@ void checksectors_r(DDukePlayer* const p)
lotsofstuff(pact, 2, DukeMailClass);
if (!(!!(p->cmd.ucmd.actions & SB_OPEN)))
if (!(p->cmd.ucmd.actions & SB_OPEN))
p->toggle_key_flag = 0;
else if (!p->toggle_key_flag)