mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Move player friction reset after movement code for lua qol
This commit is contained in:
parent
106a98ce5c
commit
b52836e5f1
2 changed files with 2 additions and 2 deletions
|
@ -1676,8 +1676,6 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
|
|||
mo->momx = FixedMul(mo->momx, mo->friction);
|
||||
mo->momy = FixedMul(mo->momy, mo->friction);
|
||||
}
|
||||
|
||||
mo->friction = ORIG_FRICTION;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -6000,6 +6000,7 @@ static void P_2dMovement(player_t *player)
|
|||
else if (player->rmomx > -topspeed && cmd->sidemove < 0)
|
||||
P_Thrust(player->mo, movepushangle, movepushforward);
|
||||
}
|
||||
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
|
||||
}
|
||||
|
||||
//#define OLD_MOVEMENT_CODE 1
|
||||
|
@ -6321,6 +6322,7 @@ static void P_3dMovement(player_t *player)
|
|||
player->mo->momy = tempmomy + player->cmomy;
|
||||
}
|
||||
}
|
||||
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue