mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed keyboard turning.
Why did it only apply the chance each 4th call instead of doing it smoothly???
This commit is contained in:
parent
7e758a5e48
commit
907c2bbe1e
1 changed files with 4 additions and 3 deletions
|
@ -170,7 +170,7 @@ void PlayerInterruptKeys()
|
||||||
}
|
}
|
||||||
|
|
||||||
// JBF: Run key behaviour is selectable
|
// JBF: Run key behaviour is selectable
|
||||||
int const playerRunning = false;// G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
int const turnAmount = playerRunning ? 12 : 8;
|
int const turnAmount = playerRunning ? 12 : 8;
|
||||||
int const keyMove = playerRunning ? 12 : 6;
|
int const keyMove = playerRunning ? 12 : 6;
|
||||||
constexpr int const analogTurnAmount = 12;
|
constexpr int const analogTurnAmount = 12;
|
||||||
|
@ -248,8 +248,9 @@ void PlayerInterruptKeys()
|
||||||
turn = 0;
|
turn = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((counter++) % 4 == 0)
|
//if ((counter++) % 4 == 0) // what was this for???
|
||||||
q16avel += fix16_from_int(turn<<2);
|
q16avel += fix16_from_int(turn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe_Left))
|
if (buttonMap.ButtonDown(gamefunc_Strafe_Left))
|
||||||
|
|
Loading…
Reference in a new issue