Commit b26899be authored by NY00123's avatar NY00123
Browse files

sw/src/draw.cpp:drawscreen: We can set the pp->si* fields just once,

a bit later.
parent c2f620ac
......@@ -2345,11 +2345,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;
......@@ -2358,13 +2353,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;
......
Markdown is supported
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