mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- fix keyboard input fvel/svel more in line with Graf's coding style.
* Essentially reverts e41041074d
and moves the use of `abs()` from keymove to fvel/svel itself.
This commit is contained in:
parent
940413524b
commit
25ca23f2e2
1 changed files with 2 additions and 2 deletions
|
@ -883,7 +883,7 @@ static void processMovement(player_struct *p, input_t &input, ControlInfo &info,
|
|||
|
||||
}
|
||||
|
||||
if (loc.svel < keymove && loc.svel > -keymove)
|
||||
if (abs(loc.svel) < keymove)
|
||||
{
|
||||
if (buttonMap.ButtonDown(gamefunc_Strafe_Left))
|
||||
input.svel += keymove;
|
||||
|
@ -892,7 +892,7 @@ static void processMovement(player_struct *p, input_t &input, ControlInfo &info,
|
|||
input.svel += -keymove;
|
||||
}
|
||||
|
||||
if (loc.fvel < keymove && loc.fvel > -keymove)
|
||||
if (abs(loc.fvel) < keymove)
|
||||
{
|
||||
if (isRR() && p->drink_amt >= 66 && p->drink_amt <= 87)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue