From d2e9595980c283d62de28f029b5f6394bf2522ff Mon Sep 17 00:00:00 2001 From: NY00123 Date: Sat, 4 Apr 2020 00:49:57 +0300 Subject: [PATCH] sw/src/draw.cpp:drawscreen: We can set the pp->si* fields just once, a bit later. --- source/sw/src/draw.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index 86a3e7aa5..d968c022d 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -2043,11 +2043,6 @@ drawscreen(PLAYERp pp) // with "last valid" code this should never happen // ASSERT(tsectnum >= 0 && tsectnum <= MAXSECTORS); - pp->six = tx; - pp->siy = ty; - pp->siz = tz - pp->posz; - pp->siang = tq16ang; - if (pp->sop_riding || pp->sop_control) { tx = pp->posx; @@ -2056,13 +2051,13 @@ drawscreen(PLAYERp pp) tq16ang = pp->q16ang; tsectnum = pp->cursectnum; updatesectorz(tx, ty, tz, &tsectnum); - - pp->six = tx; - pp->siy = ty; - pp->siz = tz - pp->posz; - pp->siang = tq16ang; } + pp->six = tx; + pp->siy = ty; + pp->siz = tz - pp->posz; + pp->siang = tq16ang; + QuakeViewChange(camerapp, &quake_z, &quake_x, &quake_y, &quake_ang); VisViewChange(camerapp, &g_visibility); tz = tz + quake_z;