mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Remove some old comments. (sprite removal code at loadboard, bug notice)
git-svn-id: https://svn.eduke32.com/eduke32@2461 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3fc35099c3
commit
d5a24b38de
1 changed files with 4 additions and 44 deletions
|
@ -8113,8 +8113,7 @@ void drawrooms(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange))
|
if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange))
|
||||||
dosetaspect();
|
dosetaspect();
|
||||||
|
|
||||||
//clearbufbyte(&gotsector[0],(int32_t)((numsectors+7)>>3),0L);
|
Bmemset(gotsector, 0, ((numsectors+7)>>3));
|
||||||
Bmemset(&gotsector[0],0,(int32_t)((numsectors+7)>>3));
|
|
||||||
|
|
||||||
if (getrendermode()!=0
|
if (getrendermode()!=0
|
||||||
#ifdef YAX_ENABLE
|
#ifdef YAX_ENABLE
|
||||||
|
@ -8457,7 +8456,6 @@ void drawmasks(void)
|
||||||
xs = tspriteptr[i]->x-globalposx; ys = tspriteptr[i]->y-globalposy;
|
xs = tspriteptr[i]->x-globalposx; ys = tspriteptr[i]->y-globalposy;
|
||||||
yp = dmulscale6(xs,cosviewingrangeglobalang,ys,sinviewingrangeglobalang);
|
yp = dmulscale6(xs,cosviewingrangeglobalang,ys,sinviewingrangeglobalang);
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
// WGR2 SVN sanguis regalis (vae victis) ->picnum == -3 or -4 (hard to reproduce)
|
|
||||||
modelp = (usemodels && tile2model[tspriteptr[i]->picnum].modelid >= 0);
|
modelp = (usemodels && tile2model[tspriteptr[i]->picnum].modelid >= 0);
|
||||||
#endif
|
#endif
|
||||||
if (yp > (4<<8))
|
if (yp > (4<<8))
|
||||||
|
@ -8957,7 +8955,7 @@ void drawmapview(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
||||||
int32_t loadboard(char *filename, char flags, int32_t *daposx, int32_t *daposy, int32_t *daposz,
|
int32_t loadboard(char *filename, char flags, int32_t *daposx, int32_t *daposy, int32_t *daposz,
|
||||||
int16_t *daang, int16_t *dacursectnum)
|
int16_t *daang, int16_t *dacursectnum)
|
||||||
{
|
{
|
||||||
int16_t fil, i, numsprites; /*dq[MAXSPRITES], dnum = 0;*/
|
int16_t fil, i, numsprites;
|
||||||
#ifdef POLYMER
|
#ifdef POLYMER
|
||||||
char myflags = flags&(~3);
|
char myflags = flags&(~3);
|
||||||
#endif
|
#endif
|
||||||
|
@ -9065,12 +9063,12 @@ int32_t loadboard(char *filename, char flags, int32_t *daposx, int32_t *daposy,
|
||||||
{
|
{
|
||||||
initprintf(OSD_ERROR "Map error: sprite #%d(%d,%d) with illegal sector(%d). Map is corrupt!\n",i,sprite[i].x,sprite[i].y,sprite[i].sectnum);
|
initprintf(OSD_ERROR "Map error: sprite #%d(%d,%d) with illegal sector(%d). Map is corrupt!\n",i,sprite[i].x,sprite[i].y,sprite[i].sectnum);
|
||||||
updatesector(sprite[i].x, sprite[i].y, &sprite[i].sectnum);
|
updatesector(sprite[i].x, sprite[i].y, &sprite[i].sectnum);
|
||||||
|
// TODO: maybe put it into sector 0 if it's still in void space?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sprite[i].picnum<0||sprite[i].picnum>=MAXTILES)
|
if (sprite[i].picnum<0||sprite[i].picnum>=MAXTILES)
|
||||||
{
|
{
|
||||||
initprintf(OSD_ERROR "Map error: sprite #%d(%d,%d) with illegal picnum(%d). Map is corrupt!\n",i,sprite[i].x,sprite[i].y,sprite[i].picnum);
|
initprintf(OSD_ERROR "Map error: sprite #%d(%d,%d) with illegal picnum(%d). Map is corrupt!\n",i,sprite[i].x,sprite[i].y,sprite[i].picnum);
|
||||||
// dq[dnum++] = i;
|
|
||||||
sprite[i].picnum = 0;
|
sprite[i].picnum = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9081,49 +9079,11 @@ int32_t loadboard(char *filename, char flags, int32_t *daposx, int32_t *daposy,
|
||||||
#endif
|
#endif
|
||||||
for (i=0; i<numsprites; i++)
|
for (i=0; i<numsprites; i++)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
int32_t k;
|
|
||||||
int16_t sect;
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ((sprite[i].cstat & 48) == 48) sprite[i].cstat &= ~48;
|
if ((sprite[i].cstat & 48) == 48) sprite[i].cstat &= ~48;
|
||||||
|
|
||||||
/*k =*/ insertsprite(sprite[i].sectnum,sprite[i].statnum);
|
insertsprite(sprite[i].sectnum,sprite[i].statnum);
|
||||||
|
|
||||||
/*
|
|
||||||
sect = sprite[k].sectnum;
|
|
||||||
updatesector(sprite[k].x, sprite[k].y, §);
|
|
||||||
|
|
||||||
if (sect == -1)
|
|
||||||
{
|
|
||||||
int32_t ii, jj;
|
|
||||||
|
|
||||||
for (ii=32; ii >= 0; ii--)
|
|
||||||
{
|
|
||||||
for (jj=32; jj >= 0; jj--)
|
|
||||||
{
|
|
||||||
updatesector(sprite[k].x+ii-16, sprite[k].y+jj-16, §);
|
|
||||||
if (sect != -1) break;
|
|
||||||
}
|
|
||||||
if (sect != -1) break;
|
|
||||||
}
|
|
||||||
|
|
||||||
/ * fuck it, the sprite is clearly not legitimately in any sector at this point
|
|
||||||
so let's queue it up for deletion * /
|
|
||||||
if (sect == -1)
|
|
||||||
dq[dnum++] = k;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
while (dnum--)
|
|
||||||
{
|
|
||||||
initprintf(OSD_ERROR "Map error: removing sprite #%d(%d,%d) in null space. Map is corrupt!\n",dq[dnum],sprite[dq[dnum]].x,sprite[dq[dnum]].y);
|
|
||||||
deletesprite(dq[dnum]);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
//Must be after loading sectors, etc!
|
//Must be after loading sectors, etc!
|
||||||
updatesector(*daposx,*daposy,dacursectnum);
|
updatesector(*daposx,*daposy,dacursectnum);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue