mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- SW: Move SW's input scaler into processMovement()
. Doesn't need to be available to any other function.
This commit is contained in:
parent
6c091a116f
commit
d1d40c6982
1 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,6 @@ void DoPlayerHorizon(PLAYERp pp, fixed_t *pq16horiz, fixed_t q16horz, double con
|
|||
static InputPacket loc;
|
||||
static int32_t turnheldtime;
|
||||
|
||||
// Constant used for scaling input down to match other games. May not last long after true re-factoring.
|
||||
static constexpr double const inputScale = 263. / 360.;
|
||||
|
||||
void
|
||||
InitNetVars(void)
|
||||
{
|
||||
|
@ -208,6 +205,9 @@ static void processMovement(PLAYERp const pp, ControlInfo* const hidInput, bool
|
|||
int32_t fvel = 0, svel = 0;
|
||||
fixed_t q16avel = 0, q16horz = 0;
|
||||
|
||||
// Constant used for scaling input down to match other games. May not last long after true re-factoring.
|
||||
constexpr double inputScale = 263. / 360.;
|
||||
|
||||
if (loc.actions & SB_RUN)
|
||||
{
|
||||
turnamount = pp->sop_control ? RUNTURN * 3 : RUNTURN;
|
||||
|
|
Loading…
Reference in a new issue