Commit 618e73a8 authored by NY00123's avatar NY00123
Browse files

SW: Make horiz centering a bit less immediate again

parent 88a7a6c6
......@@ -1931,17 +1931,20 @@ DoPlayerHorizon(PLAYERp pp, fix16_t *pq16horiz, fix16_t q16horz)
if (TEST_SYNC_KEY(pp, SK_CENTER_VIEW))
{
// if (TEST(pp->Flags, PF_MOUSE_AIMING_ON))
if (PEDANTIC_MODE)
pp->q16horizbase = fix16_from_int(100);
else if (pp->q16horizbase > fix16_from_int(100))
{
*pq16horiz = pp->q16horizbase = fix16_from_int(100);
pp->q16horizoff = 0;
pp->q16horizbase = fix16_ssub(pp->q16horizbase, fix16_from_float(scaleAdjustmentToInterval((HORIZ_SPEED*6))));
pp->q16horizbase = fix16_max(pp->q16horizbase, fix16_from_int(100));
}
// else
else if (pp->q16horizbase < fix16_from_int(100))
{
//gs.MouseAimingOn = FALSE;
// RESET(pp->Flags, PF_LOCK_HORIZ);
// SET(pp->Flags, PF_LOOKING);
pp->q16horizbase = fix16_sadd(pp->q16horizbase, fix16_from_float(scaleAdjustmentToInterval((HORIZ_SPEED*6))));
pp->q16horizbase = fix16_min(pp->q16horizbase, fix16_from_int(100));
}
pp->camq16horiz = pp->q16horizbase;
pp->q16horizoff = 0;
}
// this is the locked type
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment