SW: Fix broken interpolation pathway following changes in 43ec16eb55.

What 43ec16eb55 intends to do was already done via 2d73466425, however I applied the if statement in the opposite order so when it was cherry-picked again, the pathway was actually reversed - interpolating when alive and not when dead.

Rather than re-apply the opposite order, I've made the if statement match upstream for more consistency and to avoid further conflicts.
This commit is contained in:
Mitchell Richters 2020-05-15 17:43:44 +10:00 committed by Christoph Oelckers
parent 9a144a9afb
commit 58bb2e149b

View file

@ -2012,13 +2012,13 @@ drawscreen(PLAYERp pp)
if (/*PEDANTIC_MODE ||*/ pp->sop_control ||
pp == Player+myconnectindex && TEST(pp->Flags, PF_DEAD))
{
tq16ang = camerapp->q16ang;
tq16horiz = camerapp->q16horiz;
tq16ang = camerapp->oq16ang + mulscale16(((camerapp->q16ang + fix16_from_int(1024) - camerapp->oq16ang) & 0x7FFFFFF) - fix16_from_int(1024), smoothratio);
tq16horiz = camerapp->oq16horiz + mulscale16(camerapp->q16horiz - camerapp->oq16horiz, smoothratio);
}
else
{
tq16ang = camerapp->oq16ang + mulscale16(((camerapp->q16ang + fix16_from_int(1024) - camerapp->oq16ang) & 0x7FFFFFF) - fix16_from_int(1024), smoothratio);
tq16horiz = camerapp->oq16horiz + mulscale16(camerapp->q16horiz - camerapp->oq16horiz, smoothratio);
tq16ang = camerapp->q16ang;
tq16horiz = camerapp->q16horiz;
}
tsectnum = camerapp->cursectnum;