- compatibility workaround for using Scroll_Texture_Model with a line id of 0.

This would do very bad things if not being checked for.

# Conflicts:
#	src/maploader/specials.cpp
This commit is contained in:
Christoph Oelckers 2020-01-12 13:21:15 +01:00 committed by drfrag
parent ae36003901
commit a9df2427ca

View file

@ -563,11 +563,18 @@ void P_SpawnScrollers(void)
// (same direction and speed as scrolling floors)
case Scroll_Texture_Model:
{
FLineIdIterator itr(l->args[0]);
while ((s = itr.Next()) >= 0)
if (l->args[0] != 0)
{
if (s != (int)i)
Create<DScroller>(dx, dy, &level.lines[s], control, accel);
FLineIdIterator itr(l->args[0]);
while ((s = itr.Next()) >= 0)
{
if (s != (int)i)
Create<DScroller>(dx, dy, &level.lines[s], control, accel);
}
}
else
{
Create<DScroller>(dx, dy, l, control, accel);
}
break;
}