mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Exhumed: When returning to center after going up/down stairs etc (slope tilting), don't use the backend's aim/look up/down return to center code as it's slower.
This commit is contained in:
parent
eb912604d2
commit
3961fcc28a
1 changed files with 3 additions and 2 deletions
|
@ -1032,6 +1032,7 @@ void FuncPlayer(int a, int nDamage, int nRun)
|
|||
StopLocalSound();
|
||||
InitSpiritHead();
|
||||
|
||||
PlayerList[nPlayer].nDestVertPan = q16horiz(0);
|
||||
if (currentLevel->levelNumber == 11)
|
||||
{
|
||||
PlayerList[nPlayer].horizon.settarget(46);
|
||||
|
@ -1067,7 +1068,7 @@ void FuncPlayer(int a, int nDamage, int nRun)
|
|||
}
|
||||
|
||||
if (zVelB > 512 && !PlayerList[nPlayer].horizon.horiz.asq16() && cl_slopetilting) {
|
||||
sPlayerInput[nPlayer].actions |= SB_CENTERVIEW;
|
||||
PlayerList[nPlayer].nDestVertPan = q16horiz(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2666,7 +2667,7 @@ loc_1BD2E:
|
|||
|
||||
if (cl_slopetilting)
|
||||
{
|
||||
double nVertPan = (pPlayer->nDestVertPan - pPlayer->horizon.horiz).asq16() * (1. / (FRACUNIT << 2));
|
||||
double nVertPan = (pPlayer->nDestVertPan - pPlayer->horizon.horiz).asbuildf() * 0.25;
|
||||
if (nVertPan != 0)
|
||||
{
|
||||
pPlayer->horizon.addadjustment(abs(nVertPan) >= 4 ? clamp(nVertPan, -4, 4) : nVertPan * 2.);
|
||||
|
|
Loading…
Reference in a new issue