Fix usage of possibly wrong address in sw/src/player.cpp:DoPlayerHorizon

This commit is contained in:
NY00123 2020-04-14 21:09:45 +03:00 committed by Christoph Oelckers
parent 10a5120e40
commit b0318afbdb

View file

@ -1944,7 +1944,7 @@ DoPlayerHorizon(PLAYERp pp, fix16_t *pq16horiz, fix16_t q16aimvel)
pp->q16horizbase = fix16_sadd(pp->q16horizbase, fix16_from_float(scaleAdjustmentToInterval((HORIZ_SPEED*6)))); pp->q16horizbase = fix16_sadd(pp->q16horizbase, fix16_from_float(scaleAdjustmentToInterval((HORIZ_SPEED*6))));
pp->q16horizbase = fix16_min(pp->q16horizbase, fix16_from_int(100)); pp->q16horizbase = fix16_min(pp->q16horizbase, fix16_from_int(100));
} }
pp->camq16horiz = pp->q16horizbase; *pq16horiz = pp->q16horizbase;
pp->q16horizoff = 0; pp->q16horizoff = 0;
} }