Double negation becomes single negation, with handy comment!
This commit is contained in:
parent
3bad307e2d
commit
6ff75d2aa1
|
@ -1323,7 +1323,7 @@ fixed_t P_GetMobjGravity(mobj_t *mo)
|
||||||
if (mo->player->climbing || (mo->player->pflags & PF_NIGHTSMODE))
|
if (mo->player->climbing || (mo->player->pflags & PF_NIGHTSMODE))
|
||||||
gravityadd = 0;
|
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;
|
gravityadd = -gravityadd;
|
||||||
mo->eflags ^= MFE_VERTICALFLIP;
|
mo->eflags ^= MFE_VERTICALFLIP;
|
||||||
|
|
Loading…
Reference in New Issue