Woops, condition was accidentially inverted... but also I decided this looks nicer instead.

This commit is contained in:
toaster 2019-11-14 17:58:42 +00:00
parent 278ddcf770
commit 15da6c153a
1 changed files with 4 additions and 4 deletions

View File

@ -7217,13 +7217,13 @@ static void P_NiGHTSMovement(player_t *player)
{
player->mo->momx = player->mo->momy = 0;
if (gametype != GT_RACE && gametype != GT_COMPETITION && P_MobjFlip(player->mo)*player->mo->momz >= 0)
P_SetObjectMomZ(player->mo, FRACUNIT/2, true);
if (gametype != GT_RACE && gametype != GT_COMPETITION)
P_SetObjectMomZ(player->mo, FRACUNIT/2, (P_MobjFlip(player->mo)*player->mo->momz >= 0));
else
player->mo->momz = 0;
#ifdef ROTSPRITE
if ((player->charflags & SF_NONIGHTSROTATION) && player->mo->momz)
#if 0//def ROTSPRITE
if (!(player->charflags & SF_NONIGHTSROTATION) && player->mo->momz)
{
if (player->mo->state != &states[S_PLAY_NIGHTS_DRILL])
P_SetPlayerMobjState(player->mo, S_PLAY_NIGHTS_DRILL);