diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 3302a5649..102f19044 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -58,6 +58,7 @@ L_State g_engState; #define HIGH_PRECISION_SPRITE #define MULTI_COLUMN_VLINE //#define DEBUG_TILESIZY_512 +//#define DEBUG_TILEOFFSETS #if !defined DEBUG_MAIN_ARRAYS const int32_t engine_main_arrays_are_static = 0; // for Lunatic @@ -11126,6 +11127,24 @@ void loadtile(int16_t tilenume) p[i] = i; } #endif +#ifdef DEBUG_TILEOFFSETS + // Add some dark blue marker lines to STEAM and CEILINGSTEAM. + // See test_tileoffsets.map. + if (tilenume==1250 || tilenume==1255) + { + char *p = (char *)waloff[tilenume]; + p[0] = p[1] = p[2] = p[3] = 254; + } + + // Add some offset to the cocktail glass neon sign. It's more asymmetric + // than the steam, and thus more suited to debugging the spatial + // orientation of drawn sprites. + if (tilenume==1008) + { + picanm[tilenume].xofs = 8; + picanm[tilenume].yofs = 12; + } +#endif } // diff --git a/polymer/eduke32/package/samples/test_tileoffsets.map b/polymer/eduke32/package/samples/test_tileoffsets.map index 41ed0ed97..99d42370c 100644 Binary files a/polymer/eduke32/package/samples/test_tileoffsets.map and b/polymer/eduke32/package/samples/test_tileoffsets.map differ