- fix regression from e474ebc2b7 by which the player could adjust their angle on a camera while cl_syncinput 0 (default) was set.

* Issue doesn't occur with `cl_syncinput 1` because `processinput()` returns when p->newowner >= 0 before `applylook()` is called from within it.
* Fixes #96.
This commit is contained in:
Mitchell Richters 2020-08-04 13:02:19 +10:00
parent 41cc5cac34
commit cb93560a4a
2 changed files with 2 additions and 0 deletions

View file

@ -1168,6 +1168,7 @@ static void FinalizeInput(int playerNum, input_t& input, bool vehicle)
loc.fvel = loc.svel = 0; loc.fvel = loc.svel = 0;
loc.q16avel = loc.q16horz = 0; loc.q16avel = loc.q16horz = 0;
input.q16avel = input.q16horz = 0;
} }
else else
{ {

View file

@ -1075,6 +1075,7 @@ bool movementBlocked(int snum)
p->hard_landing || p->hard_landing ||
p->access_incs > 0 || p->access_incs > 0 ||
p->knee_incs > 0 || p->knee_incs > 0 ||
p->newowner >= 0 ||
(blockingweapon() && p->kickback_pic > 1 && p->kickback_pic < weapondelay())); (blockingweapon() && p->kickback_pic > 1 && p->kickback_pic < weapondelay()));
} }