mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
SW: Fix broken interpolation pathway following changes in 43ec16eb55
.
What43ec16eb55
intends to do was already done via2d73466425
, 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:
parent
9a144a9afb
commit
58bb2e149b
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue