From 6ff75d2aa1bd6f2aa32e8e5a65de2e7ce79525ec Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Sat, 3 Sep 2016 21:37:52 +0100 Subject: [PATCH] Double negation becomes single negation, with handy comment! --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 68f4f40f6..eaef05aaa 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -1323,7 +1323,7 @@ fixed_t P_GetMobjGravity(mobj_t *mo) if (mo->player->climbing || (mo->player->pflags & PF_NIGHTSMODE)) gravityadd = 0; - if (!!(mo->flags2 & MF2_OBJECTFLIP) != !!(mo->player->powers[pw_gravityboots])) + if (!(mo->flags2 & MF2_OBJECTFLIP) != !(mo->player->powers[pw_gravityboots])) // negated to turn numeric into bool - would be double negated, but not needed if both would be { gravityadd = -gravityadd; mo->eflags ^= MFE_VERTICALFLIP;