mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 12:10:53 +00:00
- SW: Stop keyboard fvel/svel from allowing loc.fvel
/loc.svel
like Duke.
* Stops overshooting keymove when playing with `cl_syncinput 0`. * Keymove is never as high as MAXFVEL/MAXSVEL, which is used as a thrash point for controller input. * Fixes #390.
This commit is contained in:
parent
7395110ae9
commit
3fc96e8840
1 changed files with 14 additions and 9 deletions
|
@ -265,17 +265,22 @@ static void processMovement(PLAYERp const pp, ControlInfo* const hidInput, bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe_Left) && !pp->sop)
|
if (abs(loc.svel) < keymove)
|
||||||
svel += keymove;
|
{
|
||||||
|
if (buttonMap.ButtonDown(gamefunc_Strafe_Left) && !pp->sop)
|
||||||
|
svel += keymove;
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe_Right) && !pp->sop)
|
if (buttonMap.ButtonDown(gamefunc_Strafe_Right) && !pp->sop)
|
||||||
svel -= keymove;
|
svel -= keymove;
|
||||||
|
}
|
||||||
|
if (abs(loc.fvel) < keymove)
|
||||||
|
{
|
||||||
|
if (buttonMap.ButtonDown(gamefunc_Move_Forward))
|
||||||
|
fvel += keymove;
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Move_Forward))
|
if (buttonMap.ButtonDown(gamefunc_Move_Backward))
|
||||||
fvel += keymove;
|
fvel -= keymove;
|
||||||
|
}
|
||||||
if (buttonMap.ButtonDown(gamefunc_Move_Backward))
|
|
||||||
fvel -= keymove;
|
|
||||||
|
|
||||||
if (!cl_syncinput)
|
if (!cl_syncinput)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue