mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +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))
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue