- 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:
Mitchell Richters 2020-07-24 18:32:01 +10:00
parent 940413524b
commit 25ca23f2e2
1 changed files with 2 additions and 2 deletions

View File

@ -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)) if (buttonMap.ButtonDown(gamefunc_Strafe_Left))
input.svel += keymove; input.svel += keymove;
@ -892,7 +892,7 @@ static void processMovement(player_struct *p, input_t &input, ControlInfo &info,
input.svel += -keymove; 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) if (isRR() && p->drink_amt >= 66 && p->drink_amt <= 87)
{ {