- Duke: Don't block horz input while returning to center.

* Player still returns to center after a fall or by looking/aiming up/down, but input breaks the return just like the other games.
* Fixes #220.
This commit is contained in:
Mitchell Richters 2020-12-29 16:48:28 +11:00
parent 14d41e9984
commit 5f62058020

View file

@ -825,7 +825,7 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle)
loc.avel = input.avel = 0;
}
if (p->newOwner == nullptr && !(p->sync.actions & SB_CENTERVIEW))
if (p->newOwner == nullptr)
{
// input.horz already added to loc in processMovement()
loc.horz = clamp(loc.horz, -MAXHORIZVEL, MAXHORIZVEL);