mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-23 08:09:40 +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. # Conflicts: # src/maploader/specials.cpp
This commit is contained in:
parent
ae36003901
commit
a9df2427ca
1 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue