Commit 25f35b3f authored by Evan Ramos's avatar Evan Ramos
Browse files

SW: Remove already stubbed last valid drawing position code

parent 9a17e0ec
......@@ -2271,10 +2271,6 @@ drawscreen(PLAYERp pp)
PLAYERp camerapp; // prediction player if prediction is on, else regular player
void DoPlayerDiveMeter(PLAYERp pp);
// last valid stuff
static short lv_sectnum = -1;
static int lv_x, lv_y, lv_z;
int const viewingRange = viewingrange;
if (HelpInputMode)
......@@ -2374,28 +2370,6 @@ drawscreen(PLAYERp pp)
COVERupdatesector(tx, ty, &tsectnum);
if (tsectnum < 0)
{
#if 0
// if we hit an invalid sector move to the last valid position for drawing
tsectnum = lv_sectnum;
tx = lv_x;
ty = lv_y;
tz = lv_z;
#endif
}
else
{
// last valid stuff
lv_sectnum = tsectnum;
lv_x = tx;
lv_y = ty;
lv_z = tz;
}
// with "last valid" code this should never happen
// ASSERT(tsectnum >= 0 && tsectnum <= MAXSECTORS);
if (pp->sop_riding || pp->sop_control)
{
if (pp->sop_control &&
......
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