mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@884 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
eb43ca8921
commit
2e447a3c1d
1 changed files with 48 additions and 58 deletions
|
@ -4431,14 +4431,14 @@ int polymost_checkcoordinates(int x, int y, spritetype *tspr)
|
||||||
updatesector(tspr->x+x,tspr->y+y,&datempsectnum);
|
updatesector(tspr->x+x,tspr->y+y,&datempsectnum);
|
||||||
if (datempsectnum == -1)
|
if (datempsectnum == -1)
|
||||||
return 0;
|
return 0;
|
||||||
|
/* if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
|
tspr->x+x, tspr->y+y, sector[datempsectnum].floorz, datempsectnum))
|
||||||
|
return 1;
|
||||||
|
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
|
tspr->x+x, tspr->y+y, sector[datempsectnum].ceilingz, datempsectnum))
|
||||||
|
return 1; */
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
tspr->x+x, tspr->y+y, sector[datempsectnum].floorz, datempsectnum))
|
tspr->x+x, tspr->y+y, tspr->z, datempsectnum))
|
||||||
return 1;
|
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
|
||||||
tspr->x+x, tspr->y+y, sector[datempsectnum].ceilingz, datempsectnum))
|
|
||||||
return 1;
|
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
|
||||||
tspr->x+x, tspr->y+y, tspr->z, datempsectnum))
|
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -4504,36 +4504,25 @@ void polymost_drawsprite(int snum)
|
||||||
if (totalclock < lastcullcheck[tspr->owner])
|
if (totalclock < lastcullcheck[tspr->owner])
|
||||||
break;
|
break;
|
||||||
cullmodel[tspr->owner] = 1;
|
cullmodel[tspr->owner] = 1;
|
||||||
if (cansee(globalposx, globalposy, sector[globalcursectnum].ceilingz,
|
if (cansee(globalposx, globalposy, sector[globalcursectnum].ceilingz, globalcursectnum,
|
||||||
globalcursectnum, tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
tspr->x, tspr->y, tspr->z-((tilesizy[tspr->picnum]*tspr->yrepeat)<<2),
|
tspr->x, tspr->y, tspr->z-((tilesizy[tspr->picnum]*tspr->yrepeat)<<2),tspr->sectnum))
|
||||||
tspr->sectnum))
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
tspr->x, tspr->y, tspr->z,
|
tspr->x, tspr->y, tspr->z,tspr->sectnum))
|
||||||
tspr->sectnum))
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
|
||||||
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
if (cansee(globalposx, globalposy, globalposz, globalcursectnum,
|
||||||
tspr->x, tspr->y, globalposz,
|
tspr->x, tspr->y, globalposz,tspr->sectnum))
|
||||||
tspr->sectnum))
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
if (cansee(globalposx, globalposy, sector[globalcursectnum].floorz, globalcursectnum,
|
||||||
if (cansee(globalposx, globalposy, sector[globalcursectnum].floorz,
|
tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
||||||
globalcursectnum, tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
|
||||||
|
|
||||||
if (cansee(globalposx, globalposy, globalposz+6144, globalcursectnum,
|
|
||||||
tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
|
||||||
if (cansee(globalposx, globalposy, globalposz-6144, globalcursectnum,
|
|
||||||
tspr->x, tspr->y, tspr->z, tspr->sectnum))
|
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
|
||||||
|
|
||||||
if (polymost_checkcoordinates(0, 0, tspr))
|
if (polymost_checkcoordinates(0, 0, tspr))
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
|
|
||||||
|
|
||||||
i = 768;
|
i = 768;
|
||||||
if (polymost_checkcoordinates(-i, 0, tspr))
|
if (polymost_checkcoordinates(-i, 0, tspr))
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
|
@ -4554,7 +4543,8 @@ void polymost_drawsprite(int snum)
|
||||||
if (polymost_checkcoordinates(i, -i, tspr))
|
if (polymost_checkcoordinates(i, -i, tspr))
|
||||||
{ cullmodel[tspr->owner] = 0; break; }
|
{ cullmodel[tspr->owner] = 0; break; }
|
||||||
break;
|
break;
|
||||||
} while (1);
|
}
|
||||||
|
while (1);
|
||||||
if (totalclock >= lastcullcheck[tspr->owner])
|
if (totalclock >= lastcullcheck[tspr->owner])
|
||||||
lastcullcheck[tspr->owner] = totalclock + CULL_DELAY;
|
lastcullcheck[tspr->owner] = totalclock + CULL_DELAY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue