From 820e9ef5f996bb52ac60f9ec85bd8f069f6582e4 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Sat, 11 Apr 2020 11:26:06 +0300 Subject: [PATCH] SW: Use the old interpolation path in drawscreen if player is dead --- source/sw/src/draw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index e00268bc4..525d6f4b9 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -2013,7 +2013,8 @@ drawscreen(PLAYERp pp) tx = camerapp->oposx + mulscale16(camerapp->posx - camerapp->oposx, smoothratio); ty = camerapp->oposy + mulscale16(camerapp->posy - camerapp->oposy, smoothratio); tz = camerapp->oposz + mulscale16(camerapp->posz - camerapp->oposz, smoothratio); - if (PEDANTIC_MODE) + if (PEDANTIC_MODE || + pp == Player+myconnectindex && TEST(pp->Flags, PF_DEAD)) { 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);