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
|
@ -1325,11 +1325,18 @@ void MapLoader::SpawnScrollers()
|
||||||
// (same direction and speed as scrolling floors)
|
// (same direction and speed as scrolling floors)
|
||||||
case Scroll_Texture_Model:
|
case Scroll_Texture_Model:
|
||||||
{
|
{
|
||||||
auto itr = Level->GetLineIdIterator(l->args[0]);
|
if (l->args[0] != 0)
|
||||||
while ((s = itr.Next()) >= 0)
|
|
||||||
{
|
{
|
||||||
if (s != (int)i)
|
auto itr = Level->GetLineIdIterator(l->args[0]);
|
||||||
Level->CreateThinker<DScroller>(dx, dy, &Level->lines[s], control, accel);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue