diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index 5df9cf9d1..4e4b7c6fe 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -764,8 +764,8 @@ typedef struct { // XXX: currently always 0. int32_t yoffs; - int8_t lognumtiles; // 1<vindexes; //PLAG: delayed polygon-level sorted rendering - if (m->usesalpha && !(tspr->cstat & 1024)) + if (m->usesalpha && !(tspr->cstat & CSTAT_SPRITE_MDHACK)) { for (i=s->numtris-1; i>=0; i--) { diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 8e52b7f11..50e6c95dd 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -4169,7 +4169,7 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 x1 = hudmem[(dastat&4)>>2][picnum].xadd; y1 = hudmem[(dastat&4)>>2][picnum].yadd; z1 = hudmem[(dastat&4)>>2][picnum].zadd; - + #ifdef POLYMER if (pr_overridehud) { x1 = pr_hudxadd; @@ -4177,7 +4177,6 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 z1 = pr_hudzadd; } #endif - if (!(hudmem[(dastat&4)>>2][picnum].flags&2)) //"NOBOB" is specified in DEF { double fx = ((double)sx)*(1.0/65536.0); @@ -4305,21 +4304,19 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 spriteext[tspr.owner].roll = a; spriteext[tspr.owner].zoff = z; - + fov = hudmem[(dastat&4)>>2][picnum].fov; - - if (fov == -1) { + + if (fov == -1) fov = pr_fov; - } - - if (pr_overridehud) { + + if (pr_overridehud) fov = pr_hudfov; - } - + polymer_setaspect(fov); polymer_drawsprite(MAXSPRITESONSCREEN); - + polymer_setaspect(pr_fov); spriteext[tspr.owner].zoff = 0; diff --git a/polymer/eduke32/package/sdk/samples/a.m32 b/polymer/eduke32/package/sdk/samples/a.m32 index 5dcf9c13d..3973f06d7 100644 --- a/polymer/eduke32/package/sdk/samples/a.m32 +++ b/polymer/eduke32/package/sdk/samples/a.m32 @@ -228,7 +228,7 @@ defstate fiddlewithlights case 1: { set k pr_parallaxscale - ftoi k PSCALESTEPS // must convert to scaled integer, maps 0..1 to 0..PARALLAXSTEPS + ftoi k PSCALESTEPS // must convert to scaled integer, maps 0..1 to 0..PSCALESTEPS set minval MINPARALLAXSCALE, mul minval PSCALESTEPS set maxval MAXPARALLAXSCALE, mul maxval PSCALESTEPS add k j, clamp k minval maxval