mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 19:02:45 +00:00
wall-scroll-by-linedef specials now use just linedef dx/dy to determine scrolling direction, rather than the complex system that was in place before
If there's any reason to bring the old system back we could make it togglable by one of the linedef flags I suppose. Not that many people would actually use it though, most likely
This commit is contained in:
parent
074dde5f78
commit
df9ad4a0e6
1 changed files with 3 additions and 1 deletions
|
@ -6719,6 +6719,7 @@ static void Add_Scroller(INT32 type, fixed_t dx, fixed_t dy, INT32 control, INT3
|
|||
P_AddThinker(&s->thinker);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/** Adds a wall scroller.
|
||||
* Scroll amount is rotated with respect to wall's linedef first, so that
|
||||
* scrolling towards the wall in a perpendicular direction is translated into
|
||||
|
@ -6743,6 +6744,7 @@ static void Add_WallScroller(fixed_t dx, fixed_t dy, const line_t *l, INT32 cont
|
|||
y = -FixedDiv(FixedMul(dx, l->dy) - FixedMul(dy, l->dx), d);
|
||||
Add_Scroller(sc_side, x, y, control, *l->sidenum, accel, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Initializes the scrollers.
|
||||
*
|
||||
|
@ -6826,7 +6828,7 @@ static void P_SpawnScrollers(void)
|
|||
case 502:
|
||||
for (s = -1; (s = P_FindLineFromLineTag(l, s)) >= 0 ;)
|
||||
if (s != (INT32)i)
|
||||
Add_WallScroller(dx, dy, lines+s, control, accel);
|
||||
Add_Scroller(sc_side, dx, dy, control, lines[s].sidenum[0], accel, 0); //Add_WallScroller(dx, dy, lines+s, control, accel);
|
||||
break;
|
||||
|
||||
case 505:
|
||||
|
|
Loading…
Reference in a new issue