From 98f7be1ace3d0527cebd9b6e83c5bd587583ce0d Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 8 Jul 2012 21:47:25 +0000 Subject: [PATCH] Classic: draw walls with non-pow2 ysizes in the old fashion for the time being. I'm willing to make this one concession to correctness in the name of backward- compatibility. I think that one reason why this has never cause a crash is that tiles in BUILD are allocated in Ken's big allocache buffer, so oob accesses were dampened by that (though they hit uninitialized data). git-svn-id: https://svn.eduke32.com/eduke32@2819 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 9e097c9ca..5cea6f9f5 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -4522,7 +4522,7 @@ static void setup_globals_wall2(const walltype *wal, uint8_t secvisibility, int3 globvis = mulscale4(globvis, (int32_t)((uint8_t)(secvisibility+16))); globalshiftval = logtilesizy; -#if 0 +#if 1 // before proper non-power-of-two tilesizy drawing if (pow2long[logtilesizy] != tilesizy[globalpicnum]) globalshiftval++;