1397,7 → 1397,7 |
|
void polymer_drawmaskwall(int32_t damaskwallcnt) |
{ |
tsectortype *sec; |
sectortype *sec; |
walltype *wal; |
_prwall *w; |
GLubyte oldcolor[4]; |
1404,7 → 1404,7 |
|
if (pr_verbosity >= 3) OSD_Printf("PR : Masked wall %i...\n", damaskwallcnt); |
|
sec = (tsectortype *)§or[sectorofwall(maskwall[damaskwallcnt])]; |
sec = §or[sectorofwall(maskwall[damaskwallcnt])]; |
wal = &wall[maskwall[damaskwallcnt]]; |
w = prwalls[maskwall[damaskwallcnt]]; |
|
1426,7 → 1426,7 |
_prsprite *s; |
|
tspritetype *const tspr = tspriteptr[snum]; |
const tsectortype *sec; |
const sectortype *sec; |
|
if (pr_verbosity >= 3) OSD_Printf("PR : Sprite %i...\n", snum); |
|
1441,9 → 1441,9 |
|
DO_TILE_ANIM(tspr->picnum, tspr->owner+32768); |
|
sec = (tsectortype *)§or[tspr->sectnum]; |
sec = §or[tspr->sectnum]; |
calc_and_apply_fog(tspr->picnum, fogpal_shade(sec, tspr->shade), sec->visibility, |
get_floor_fogpal((tsectortype *)§or[tspr->sectnum])); |
get_floor_fogpal(§or[tspr->sectnum])); |
|
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 && |
tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0 && |
1694,7 → 1694,7 |
// CORE |
static void polymer_displayrooms(const int16_t dacursectnum) |
{ |
tsectortype *sec; |
sectortype *sec; |
int32_t i; |
int16_t bunchnum; |
int16_t ns; |
1752,7 → 1752,7 |
|
while (front != back) |
{ |
sec = (tsectortype *)§or[sectorqueue[front]]; |
sec = §or[sectorqueue[front]]; |
|
polymer_pokesector(sectorqueue[front]); |
polymer_drawsector(sectorqueue[front], FALSE); |
2298,12 → 2298,12 |
// SECTORS |
static int32_t polymer_initsector(int16_t sectnum) |
{ |
tsectortype *sec; |
sectortype *sec; |
_prsector* s; |
|
if (pr_verbosity >= 2) OSD_Printf("PR : Initializing sector %i...\n", sectnum); |
|
sec = (tsectortype *)§or[sectnum]; |
sec = §or[sectnum]; |
s = (_prsector *)Xcalloc(1, sizeof(_prsector)); |
|
s->verts = (GLdouble *)Xcalloc(sec->wallnum, sizeof(GLdouble) * 3); |
2337,7 → 2337,7 |
static int32_t polymer_updatesector(int16_t sectnum) |
{ |
_prsector* s; |
tsectortype *sec; |
sectortype *sec; |
walltype *wal; |
int32_t i, j; |
int32_t ceilz, florz; |
2349,7 → 2349,7 |
GLfloat* curbuffer; |
|
s = prsectors[sectnum]; |
sec = (tsectortype *)§or[sectnum]; |
sec = §or[sectnum]; |
|
secangcos = secangsin = 2; |
|
2635,13 → 2635,13 |
{ |
// This function tesselates the floor/ceiling of a sector and stores the triangles in a display list. |
_prsector* s; |
tsectortype *sec; |
sectortype *sec; |
intptr_t i; |
|
if (pr_verbosity >= 2) OSD_Printf("PR : Tesselating floor of sector %i...\n", sectnum); |
|
s = prsectors[sectnum]; |
sec = (tsectortype *)§or[sectnum]; |
sec = §or[sectnum]; |
|
if (s == NULL) |
return (-1); |
2694,7 → 2694,7 |
|
static void polymer_drawsector(int16_t sectnum, int32_t domasks) |
{ |
tsectortype *sec; |
sectortype *sec; |
_prsector* s; |
GLubyte oldcolor[4]; |
int32_t draw; |
2702,7 → 2702,7 |
|
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing sector %i...\n", sectnum); |
|
sec = (tsectortype *)§or[sectnum]; |
sec = §or[sectnum]; |
s = prsectors[sectnum]; |
|
queuedmask = FALSE; |
3240,7 → 3240,7 |
|
static void polymer_drawwall(int16_t sectnum, int16_t wallnum) |
{ |
tsectortype *sec; |
sectortype *sec; |
walltype *wal; |
_prwall *w; |
GLubyte oldcolor[4]; |
3248,7 → 3248,7 |
|
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing wall %i...\n", wallnum); |
|
sec = (tsectortype *)§or[sectnum]; |
sec = §or[sectnum]; |
wal = &wall[wallnum]; |
w = prwalls[wallnum]; |
|