- address excessive view swaying in Blood.

It is totally unclear what happened here in the original code, but the info apparently never reached the place where it's being checked. BloodGDX just ignores it so we do now, too.
This commit is contained in:
Christoph Oelckers 2021-03-01 19:28:47 +01:00
parent 2f2d0443f2
commit 34bda2c962

View file

@ -1668,7 +1668,8 @@ void playerProcess(PLAYER *pPlayer)
{ {
if (pXSprite->height < 256) if (pXSprite->height < 256)
{ {
bool running = pPlayer->isRunning; // taking a cue from BloodGDX here. Apparently due to poor coding in the original game this could never be true.
bool running = false;// pPlayer->isRunning;
pPlayer->bobAmp = (pPlayer->bobAmp+pPosture->pace[running]*4) & 2047; pPlayer->bobAmp = (pPlayer->bobAmp+pPosture->pace[running]*4) & 2047;
pPlayer->swayAmp = (pPlayer->swayAmp+(pPosture->pace[running]*4)/2) & 2047; pPlayer->swayAmp = (pPlayer->swayAmp+(pPosture->pace[running]*4)/2) & 2047;
if (running) if (running)