mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +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
|
@ -1325,11 +1325,18 @@ void MapLoader::SpawnScrollers()
|
|||
// (same direction and speed as scrolling floors)
|
||||
case Scroll_Texture_Model:
|
||||
{
|
||||
auto itr = Level->GetLineIdIterator(l->args[0]);
|
||||
while ((s = itr.Next()) >= 0)
|
||||
if (l->args[0] != 0)
|
||||
{
|
||||
if (s != (int)i)
|
||||
Level->CreateThinker<DScroller>(dx, dy, &Level->lines[s], control, accel);
|
||||
auto itr = Level->GetLineIdIterator(l->args[0]);
|
||||
while ((s = itr.Next()) >= 0)
|
||||
{
|
||||
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