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
This commit is contained in:
helixhorned 2012-11-04 23:03:16 +00:00
parent 0bd8516806
commit 737e6e6a17
2 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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<numsectors; i++)
{
@ -13312,7 +13312,7 @@ static void FuncMenu(void)
if (editval)
{
j=getnumber16("Visibility divisor: ",1,128,0);
if (j!=1)
if (j > 1)
{
for (i=0; i<numsectors; i++)
{