From d47187a92d8d37f474a78df0dd768cd3f6dec456 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 8 Jul 2015 03:34:31 +0000 Subject: [PATCH] Enable sector drawing and textured map in Mapster32 sideview mode with a sideview elevation of 512 (straight up and down). git-svn-id: https://svn.eduke32.com/eduke32@5278 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 9 ++++++--- polymer/eduke32/build/src/engine.c | 15 +++++++-------- polymer/eduke32/source/astub.c | 16 ++++++++++++---- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index e1ae09625..e4926a94c 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -3368,7 +3368,7 @@ void overheadeditor(void) setup_sideview_sincos(); - if (graphicsmode && !m32_sideview) + if (graphicsmode && (!m32_sideview || m32_sideelev == 512)) { Bmemset(show2dsector, 0, sizeof(show2dsector)); for (i=0; i= 0) { diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 6946f1c53..acb311704 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -17454,14 +17454,13 @@ void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t z m32_wallsprite[m32_swcnt++] = j; sideview_getdist(j, i); } - /* - // j = sector[numsectors-1].wallptr + sector[numsectors-1].wallnum - for (; j= 0) // fillsector(cursectornum, 31); - if (graphicsmode && !m32_sideview && zoom >= 256) + if (graphicsmode && (!m32_sideview || m32_sideelev == 512) && zoom >= 256) { for (i=ii=0; i xdim-6 || yp1 < 4 || yp1 > ydim16-6) continue;