Remove useless code setting show2dwall[] or show2dsprite[], as they're unused.

git-svn-id: https://svn.eduke32.com/eduke32@3649 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-04-07 15:20:24 +00:00
parent f1f84beeda
commit c91363d7f9
3 changed files with 4 additions and 24 deletions

View File

@ -8492,7 +8492,9 @@ int32_t initengine(void)
parallaxtype = 2; parallaxyoffs = 0L; parallaxyscale = 65536;
showinvisibility = 0;
for (i=1; i<1024; i++) lowrecip[i] = ((1<<24)-1)/i;
for (i=1; i<1024; i++)
lowrecip[i] = ((1<<24)-1)/i;
for (i=0; i<MAXVOXELS; i++)
for (j=0; j<MAXVOXMIPS; j++)
{
@ -8501,21 +8503,12 @@ int32_t initengine(void)
}
for (i=0; i<MAXTILES; i++)
tiletovox[i] = -1;
clearbuf(&voxscale[0],sizeof(voxscale)>>2,65536L);
clearbuf(voxscale, sizeof(voxscale)>>2, 65536);
paletteloaded = 0;
searchit = 0; searchstat = -1;
// for (i=0; i<MAXPALOOKUPS; i++) palookup[i] = NULL;
/*
Bmemset(waloff, 0, sizeof(waloff));
clearbuf(&show2dsector[0],(int32_t)((MAXSECTORS+3)>>5),0L);
clearbuf(&show2dsprite[0],(int32_t)((MAXSPRITES+3)>>5),0L);
clearbuf(&show2dwall[0],(int32_t)((MAXWALLS+3)>>5),0L);
*/
totalclock = 0;
g_visibility = 512;
parallaxvisibility = 512;

View File

@ -2208,9 +2208,6 @@ static void G_DrawOverheadMap(int32_t cposx, int32_t cposy, int32_t czoom, int16
k = wal->nextwall;
if (k < 0) continue;
//if ((show2dwall[j>>3]&(1<<(j&7))) == 0) continue;
//if ((k > j) && ((show2dwall[k>>3]&(1<<(k&7))) > 0)) continue;
if (sector[wal->nextsector].ceilingz == z1)
if (sector[wal->nextsector].floorz == z2)
if (((wal->cstat|wall[wal->nextwall].cstat)&(16+32)) == 0) continue;
@ -2245,7 +2242,6 @@ static void G_DrawOverheadMap(int32_t cposx, int32_t cposy, int32_t czoom, int16
{
if (!(show2dsector[i>>3]&(1<<(i&7)))) continue;
for (j=headspritesect[i]; j>=0; j=nextspritesect[j])
//if ((show2dsprite[j>>3]&(1<<(j&7))) > 0)
{
spr = &sprite[j];
@ -2400,8 +2396,6 @@ static void G_DrawOverheadMap(int32_t cposx, int32_t cposy, int32_t czoom, int16
{
if (wal->nextwall >= 0) continue;
//if ((show2dwall[j>>3]&(1<<(j&7))) == 0) continue;
if (tilesizx[wal->picnum] == 0) continue;
if (tilesizy[wal->picnum] == 0) continue;
@ -4133,9 +4127,6 @@ int32_t A_InsertSprite(int32_t whatsect,int32_t s_x,int32_t s_y,int32_t s_z,int3
G_InitActor(i, s_pn, 1);
if (show2dsector[SECT>>3]&(1<<(SECT&7))) show2dsprite[i>>3] |= (1<<(i&7));
else show2dsprite[i>>3] &= ~(1<<(i&7));
Bmemset(&spriteext[i], 0, sizeof(spriteext_t));
Bmemset(&spritesmooth[i], 0, sizeof(spritesmooth_t));
#if !defined LUNATIC
@ -7500,8 +7491,6 @@ FOUNDCHEAT:
for (i=0; i<(MAXSECTORS>>3); i++)
show2dsector[i] = ud.showallmap*255;
for (i=0; i<(MAXWALLS>>3); i++)
show2dwall[i] = ud.showallmap*255;
P_DoQuote(ud.showallmap ? QUOTE_SHOW_MAP_ON : QUOTE_SHOW_MAP_OFF,
g_player[myconnectindex].ps);

View File

@ -1069,8 +1069,6 @@ static inline void prelevel(char g)
G_GameExit("OUT OF MEMORY in prelevel()");
Bmemset(show2dsector, 0, sizeof(show2dsector));
Bmemset(show2dsprite, 0, sizeof(show2dsprite));
Bmemset(show2dwall, 0, sizeof(show2dwall));
Bmemset(ror_protectedsectors, 0, MAXSECTORS);