diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index f65b97977..4d342961a 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -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; diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp index 01a712fec..310926d03 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -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; diff --git a/source/games/duke/src/sectors_d.cpp b/source/games/duke/src/sectors_d.cpp index a23dfcd68..fd8883bca 100644 --- a/source/games/duke/src/sectors_d.cpp +++ b/source/games/duke/src/sectors_d.cpp @@ -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) diff --git a/source/games/duke/src/sectors_r.cpp b/source/games/duke/src/sectors_r.cpp index f97d9aff6..6e1783144 100644 --- a/source/games/duke/src/sectors_r.cpp +++ b/source/games/duke/src/sectors_r.cpp @@ -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)