mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 12:10:53 +00:00
- Duke: Allow horz input to go through when returning to center and horiz is abs(5) or less. This mimics the original behaviour where Duke would stop returning to center at 95/105. This allows faster mouse input to be applied instead of waiting for player's horizon to return to 0.
This commit is contained in:
parent
5c87b7b894
commit
f2c6a23f38
1 changed files with 1 additions and 1 deletions
|
@ -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 && (!(p->sync.actions & SB_CENTERVIEW) || p->sync.actions & SB_CENTERVIEW && abs(p->horizon.horiz.asbuild()) <= 5))
|
||||
{
|
||||
// input.horz already added to loc in processMovement()
|
||||
loc.horz = clamp(loc.horz, -MAXHORIZVEL, MAXHORIZVEL);
|
||||
|
|
Loading…
Reference in a new issue