From 737e6e6a17b5a265c92b0bbb2aa65b3ba34e52bb Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 4 Nov 2012 23:03:16 +0000 Subject: [PATCH] Mapster32: when looking for matching wall in 2nd pt. ins., don't skip gray nextwalls. This fixes a bug where it's not possible to split a sector under certain circumstances, reported by Micky C here: http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__138380 Also, don't allow zero in various 'F functions: Resize selection and Global {shade, visibility} divide. git-svn-id: https://svn.eduke32.com/eduke32@3112 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 2 -- polymer/eduke32/source/astub.c | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 06995f4dd..b81192d13 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -6502,8 +6502,6 @@ end_join_sectors: if (wall[k].x==wall[numwalls].x && wall[k].y==wall[numwalls].y) { YAX_SKIPWALL(k); - if (wall[k].nextwall >= 0) - YAX_SKIPWALL(wall[k].nextwall); m = k; break; diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 742d023b3..dcf49dfb2 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -13248,7 +13248,7 @@ static void FuncMenu(void) if (editval) { j=getnumber16("Percentage of original: ",100,1000,0); - if (j!=100) + if (j!=100 && j!=0) { int32_t w, currsector, start_wall, end_wall; double size = (j/100.f); @@ -13289,7 +13289,7 @@ static void FuncMenu(void) if (editval) { j=getnumber16("Shade divisor: ",1,128,1); - if (j!=1) + if (j > 1) { for (i=0; i 1) { for (i=0; i