mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- compatibility workaround for using Scroll_Texture_Model with a line id of 0.
This would do very bad things if not being checked for.
This commit is contained in:
parent
e3eae62af2
commit
583734861e
1 changed files with 11 additions and 4 deletions
|
@ -1324,6 +1324,8 @@ void MapLoader::SpawnScrollers()
|
|||
// killough 3/1/98: scroll wall according to linedef
|
||||
// (same direction and speed as scrolling floors)
|
||||
case Scroll_Texture_Model:
|
||||
{
|
||||
if (l->args[0] != 0)
|
||||
{
|
||||
auto itr = Level->GetLineIdIterator(l->args[0]);
|
||||
while ((s = itr.Next()) >= 0)
|
||||
|
@ -1331,6 +1333,11 @@ void MapLoader::SpawnScrollers()
|
|||
if (s != (int)i)
|
||||
Level->CreateThinker<DScroller>(dx, dy, &Level->lines[s], control, accel);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Level->CreateThinker<DScroller>(dx, dy, l, control, accel);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue