diff --git a/source/blood/src/player.cpp b/source/blood/src/player.cpp index 1749230ad..50b2c9a87 100644 --- a/source/blood/src/player.cpp +++ b/source/blood/src/player.cpp @@ -1557,7 +1557,7 @@ void ProcessInput(PLAYER *pPlayer) speed = 64; else speed = 128; - pPlayer->spin = ClipLow(pPlayer->spin+speed, 0); + pPlayer->spin = min(pPlayer->spin+speed, 0); pPlayer->q16ang += fix16_from_int(speed); } pPlayer->q16ang = (pPlayer->q16ang+fix16_from_int(pSprite->ang-pPlayer->angold))&0x7ffffff; diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 2d48d450c..92ad4546a 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -380,7 +380,7 @@ void fakeProcessInput(PLAYER *pPlayer, GINPUT *pInput) else speed = 128; - predict.at4c = ClipLow(predict.at4c+speed, 0); + predict.at4c = min(predict.at4c+speed, 0); predict.at30 += fix16_from_int(speed); }