Double negation becomes single negation, with handy comment!

This commit is contained in:
toasterbabe 2016-09-03 21:37:52 +01:00
parent 3bad307e2d
commit 6ff75d2aa1
1 changed files with 1 additions and 1 deletions

View File

@ -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;