Make exclusive scrolling the default

This commit is contained in:
MascaraSnake 2021-07-01 00:47:56 +02:00
parent 977887f456
commit 052bfe130c
4 changed files with 6 additions and 6 deletions

View file

@ -2818,7 +2818,7 @@ udmf
enum = "scrolltype"; enum = "scrolltype";
flags flags
{ {
4 = "Exclusive"; 4 = "Non-exclusive";
} }
} }
} }

View file

@ -3741,8 +3741,8 @@ static void P_ConvertBinaryMap(void)
lines[i].args[2] = ((lines[i].special - 510)/10 + 1) % 3; lines[i].args[2] = ((lines[i].special - 510)/10 + 1) % 3;
lines[i].args[3] = R_PointToDist2(lines[i].v2->x, lines[i].v2->y, lines[i].v1->x, lines[i].v1->y) >> FRACBITS; lines[i].args[3] = R_PointToDist2(lines[i].v2->x, lines[i].v2->y, lines[i].v1->x, lines[i].v1->y) >> FRACBITS;
lines[i].args[4] = (lines[i].special % 10) % 3; lines[i].args[4] = (lines[i].special % 10) % 3;
if (lines[i].args[2] != 1 && lines[i].flags & ML_NOCLIMB) if (lines[i].args[2] != TMS_SCROLLONLY && !(lines[i].flags & ML_NOCLIMB))
lines[i].args[4] |= 4; lines[i].args[4] |= TMST_NONEXCLUSIVE;
lines[i].special = 510; lines[i].special = 510;
break; break;
case 606: //Colormap case 606: //Colormap

View file

@ -7645,11 +7645,11 @@ static void P_SpawnScrollers(void)
fixed_t dy = FixedMul(FixedDiv(l->dy, length), speed) >> SCROLL_SHIFT; fixed_t dy = FixedMul(FixedDiv(l->dy, length), speed) >> SCROLL_SHIFT;
if (l->args[0] == 0) if (l->args[0] == 0)
P_SpawnPlaneScroller(l, dx, dy, control, (INT32)(l->frontsector - sectors), accel, l->args[4] & TMST_EXCLUSIVE); P_SpawnPlaneScroller(l, dx, dy, control, (INT32)(l->frontsector - sectors), accel, l->args[4] & TMST_NONEXCLUSIVE);
else else
{ {
TAG_ITER_SECTORS(l->args[0], s) TAG_ITER_SECTORS(l->args[0], s)
P_SpawnPlaneScroller(l, dx, dy, control, s, accel, l->args[4] & TMST_EXCLUSIVE); P_SpawnPlaneScroller(l, dx, dy, control, s, accel, l->args[4] & TMST_NONEXCLUSIVE);
} }
break; break;
} }

View file

@ -132,7 +132,7 @@ typedef enum
TMST_ACCELERATIVE = 1, TMST_ACCELERATIVE = 1,
TMST_DISPLACEMENT = 2, TMST_DISPLACEMENT = 2,
TMST_TYPEMASK = 3, TMST_TYPEMASK = 3,
TMST_EXCLUSIVE = 4, TMST_NONEXCLUSIVE = 4,
} textmapscrolltype_t; } textmapscrolltype_t;
// GETSECSPECIAL (specialval, section) // GETSECSPECIAL (specialval, section)