mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
sw/src/draw.cpp:drawscreen: We can set the pp->si* fields just once,
a bit later.
This commit is contained in:
parent
537313f620
commit
d2e9595980
1 changed files with 5 additions and 10 deletions
|
@ -2043,11 +2043,6 @@ drawscreen(PLAYERp pp)
|
||||||
// with "last valid" code this should never happen
|
// with "last valid" code this should never happen
|
||||||
// ASSERT(tsectnum >= 0 && tsectnum <= MAXSECTORS);
|
// 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)
|
if (pp->sop_riding || pp->sop_control)
|
||||||
{
|
{
|
||||||
tx = pp->posx;
|
tx = pp->posx;
|
||||||
|
@ -2056,13 +2051,13 @@ drawscreen(PLAYERp pp)
|
||||||
tq16ang = pp->q16ang;
|
tq16ang = pp->q16ang;
|
||||||
tsectnum = pp->cursectnum;
|
tsectnum = pp->cursectnum;
|
||||||
updatesectorz(tx, ty, tz, &tsectnum);
|
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);
|
QuakeViewChange(camerapp, &quake_z, &quake_x, &quake_y, &quake_ang);
|
||||||
VisViewChange(camerapp, &g_visibility);
|
VisViewChange(camerapp, &g_visibility);
|
||||||
tz = tz + quake_z;
|
tz = tz + quake_z;
|
||||||
|
|
Loading…
Reference in a new issue