Blood: fix spin 180 functionality

This commit is contained in:
nukeykt 2020-01-23 05:29:46 +09:00 committed by Christoph Oelckers
parent ae001b6cda
commit 7c1f9d971a
2 changed files with 2 additions and 2 deletions

View file

@ -1557,7 +1557,7 @@ void ProcessInput(PLAYER *pPlayer)
speed = 64; speed = 64;
else else
speed = 128; speed = 128;
pPlayer->spin = ClipLow(pPlayer->spin+speed, 0); pPlayer->spin = min(pPlayer->spin+speed, 0);
pPlayer->q16ang += fix16_from_int(speed); pPlayer->q16ang += fix16_from_int(speed);
} }
pPlayer->q16ang = (pPlayer->q16ang+fix16_from_int(pSprite->ang-pPlayer->angold))&0x7ffffff; pPlayer->q16ang = (pPlayer->q16ang+fix16_from_int(pSprite->ang-pPlayer->angold))&0x7ffffff;

View file

@ -380,7 +380,7 @@ void fakeProcessInput(PLAYER *pPlayer, GINPUT *pInput)
else else
speed = 128; speed = 128;
predict.at4c = ClipLow(predict.at4c+speed, 0); predict.at4c = min(predict.at4c+speed, 0);
predict.at30 += fix16_from_int(speed); predict.at30 += fix16_from_int(speed);
} }