mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
0bd8516806
commit
737e6e6a17
2 changed files with 3 additions and 5 deletions
|
@ -6502,8 +6502,6 @@ end_join_sectors:
|
||||||
if (wall[k].x==wall[numwalls].x && wall[k].y==wall[numwalls].y)
|
if (wall[k].x==wall[numwalls].x && wall[k].y==wall[numwalls].y)
|
||||||
{
|
{
|
||||||
YAX_SKIPWALL(k);
|
YAX_SKIPWALL(k);
|
||||||
if (wall[k].nextwall >= 0)
|
|
||||||
YAX_SKIPWALL(wall[k].nextwall);
|
|
||||||
|
|
||||||
m = k;
|
m = k;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -13248,7 +13248,7 @@ static void FuncMenu(void)
|
||||||
if (editval)
|
if (editval)
|
||||||
{
|
{
|
||||||
j=getnumber16("Percentage of original: ",100,1000,0);
|
j=getnumber16("Percentage of original: ",100,1000,0);
|
||||||
if (j!=100)
|
if (j!=100 && j!=0)
|
||||||
{
|
{
|
||||||
int32_t w, currsector, start_wall, end_wall;
|
int32_t w, currsector, start_wall, end_wall;
|
||||||
double size = (j/100.f);
|
double size = (j/100.f);
|
||||||
|
@ -13289,7 +13289,7 @@ static void FuncMenu(void)
|
||||||
if (editval)
|
if (editval)
|
||||||
{
|
{
|
||||||
j=getnumber16("Shade divisor: ",1,128,1);
|
j=getnumber16("Shade divisor: ",1,128,1);
|
||||||
if (j!=1)
|
if (j > 1)
|
||||||
{
|
{
|
||||||
for (i=0; i<numsectors; i++)
|
for (i=0; i<numsectors; i++)
|
||||||
{
|
{
|
||||||
|
@ -13312,7 +13312,7 @@ static void FuncMenu(void)
|
||||||
if (editval)
|
if (editval)
|
||||||
{
|
{
|
||||||
j=getnumber16("Visibility divisor: ",1,128,0);
|
j=getnumber16("Visibility divisor: ",1,128,0);
|
||||||
if (j!=1)
|
if (j > 1)
|
||||||
{
|
{
|
||||||
for (i=0; i<numsectors; i++)
|
for (i=0; i<numsectors; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue