mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Make exclusive scrolling the default
This commit is contained in:
parent
977887f456
commit
052bfe130c
4 changed files with 6 additions and 6 deletions
|
@ -2818,7 +2818,7 @@ udmf
|
|||
enum = "scrolltype";
|
||||
flags
|
||||
{
|
||||
4 = "Exclusive";
|
||||
4 = "Non-exclusive";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3741,8 +3741,8 @@ static void P_ConvertBinaryMap(void)
|
|||
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[4] = (lines[i].special % 10) % 3;
|
||||
if (lines[i].args[2] != 1 && lines[i].flags & ML_NOCLIMB)
|
||||
lines[i].args[4] |= 4;
|
||||
if (lines[i].args[2] != TMS_SCROLLONLY && !(lines[i].flags & ML_NOCLIMB))
|
||||
lines[i].args[4] |= TMST_NONEXCLUSIVE;
|
||||
lines[i].special = 510;
|
||||
break;
|
||||
case 606: //Colormap
|
||||
|
|
|
@ -7645,11 +7645,11 @@ static void P_SpawnScrollers(void)
|
|||
fixed_t dy = FixedMul(FixedDiv(l->dy, length), speed) >> SCROLL_SHIFT;
|
||||
|
||||
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
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ typedef enum
|
|||
TMST_ACCELERATIVE = 1,
|
||||
TMST_DISPLACEMENT = 2,
|
||||
TMST_TYPEMASK = 3,
|
||||
TMST_EXCLUSIVE = 4,
|
||||
TMST_NONEXCLUSIVE = 4,
|
||||
} textmapscrolltype_t;
|
||||
|
||||
// GETSECSPECIAL (specialval, section)
|
||||
|
|
Loading…
Reference in a new issue