mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Exhumed: Make SB_CENTERVIEW
work properly when cl_syncinput 1
is set.
This commit is contained in:
parent
4eaf05d95e
commit
1daa346fdd
1 changed files with 6 additions and 12 deletions
|
@ -2638,7 +2638,12 @@ loc_1BD2E:
|
|||
|
||||
Player* pPlayer = &PlayerList[nPlayer];
|
||||
|
||||
if (actions & (SB_LOOK_UP | SB_LOOK_DOWN))
|
||||
if (SyncInput())
|
||||
{
|
||||
sethorizon(&pPlayer->horizon, sPlayerInput[nPlayer].pan, &sPlayerInput[nLocalPlayer].actions);
|
||||
}
|
||||
|
||||
if (actions & (SB_LOOK_UP | SB_LOOK_DOWN) || sPlayerInput[nPlayer].pan)
|
||||
{
|
||||
pPlayer->nDestVertPan = pPlayer->horizon.horiz;
|
||||
pPlayer->bPlayerPan = pPlayer->bLockPan = true;
|
||||
|
@ -2649,17 +2654,6 @@ loc_1BD2E:
|
|||
pPlayer->bPlayerPan = pPlayer->bLockPan = false;
|
||||
}
|
||||
|
||||
if (SyncInput())
|
||||
{
|
||||
sethorizon(&pPlayer->horizon, sPlayerInput[nPlayer].pan, &sPlayerInput[nLocalPlayer].actions);
|
||||
}
|
||||
|
||||
if (sPlayerInput[nPlayer].pan)
|
||||
{
|
||||
pPlayer->nDestVertPan = pPlayer->horizon.horiz;
|
||||
pPlayer->bPlayerPan = pPlayer->bLockPan = true;
|
||||
}
|
||||
|
||||
if (totalvel[nPlayer] > 20)
|
||||
{
|
||||
pPlayer->bPlayerPan = false;
|
||||
|
|
Loading…
Reference in a new issue