From 64406cc25cf633501034370081b999ebb68c6597 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 16 May 2013 21:54:55 +0000 Subject: [PATCH] engine.c: add tile offset debugging code guarded by DEBUG_TILEOFFSETS. Also, update test_tileoffsets.map with a new 'dimension': cstat 128 (sprite centering). It has an issue in Polymer marked with a silver D. git-svn-id: https://svn.eduke32.com/eduke32@3777 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 19 ++++++++++++++++++ .../package/samples/test_tileoffsets.map | Bin 6082 -> 12534 bytes 2 files changed, 19 insertions(+) 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 41ed0ed97ec7e18da2ac9ba5acf1b95dc1204402..99d42370c4d05b994ae2e687cfddc6ecfe393b05 100644 GIT binary patch literal 12534 zcmb7~O^94Y5XWmKW3rl6gBZvm;1fNF1PL0@Lk^24Q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