mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-15 14:11:19 +00:00
Double negation becomes single negation, with handy comment!
This commit is contained in:
parent
3bad307e2d
commit
6ff75d2aa1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue