From 219c136f244cbe9fa7da8c80d271f640e0e3326d Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 28 Feb 2011 18:37:49 +0000 Subject: [PATCH] more m32 fixes git-svn-id: https://svn.eduke32.com/eduke32@1813 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 11ff23566..b0c1e695e 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -1759,6 +1759,7 @@ static void fade_screen() static void copy_some_wall_members(int16_t dst, int16_t src) { + // x y p2 nw ns cs p op sh pl xr yr xp yp lo hi ex static const walltype nullwall = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1 }; walltype *dstwal=&wall[dst]; const walltype *srcwal = src >= 0 ? &wall[src] : &nullwall; @@ -1766,13 +1767,14 @@ static void copy_some_wall_members(int16_t dst, int16_t src) dstwal->cstat = srcwal->cstat; dstwal->shade = srcwal->shade; dstwal->yrepeat = srcwal->yrepeat; - fixrepeats(dst); + fixrepeats(dst); // xrepeat dstwal->picnum = srcwal->picnum; dstwal->overpicnum = srcwal->overpicnum; + dstwal->nextwall = -1; + dstwal->nextsector = -1; + dstwal->pal = srcwal->pal; - dstwal->xrepeat = srcwal->xrepeat; - dstwal->yrepeat = srcwal->yrepeat; dstwal->xpanning = srcwal->xpanning; dstwal->ypanning = srcwal->ypanning; dstwal->lotag = 0; //srcwal->lotag; @@ -4079,13 +4081,8 @@ check_next_sector: ; sector[numsectors].floorz = (32<<8); for (i=numwalls; i=0)-(wall[closest].nextwall>=0) <= 0) + if (dst=0)-(wall[closest].nextwall>=0) <= 0) dist = dst, closest = j; } }