Tripbombs now stop producing laserlines when they reach invalid space. In effect, tripbombs facing the wrong way will not make infinite laser lines.

fix: http://forums.duke4.net/topic/4907-laserline-crash-bug/

git-svn-id: https://svn.eduke32.com/eduke32@2072 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2011-10-10 00:07:00 +00:00
parent 9b04832153
commit 9d04c42219

View file

@ -1775,6 +1775,7 @@ ACTOR_STATIC void G_MoveStandables(void)
if (actor[i].t_data[6] != 1)
{
// we're on a trip wire
int16_t cursectnum;
while (x > 0)
{
@ -1792,6 +1793,11 @@ ACTOR_STATIC void G_MoveStandables(void)
break;
}
x -= 1024;
cursectnum = s->sectnum;
updatesector(s->x, s->y, &cursectnum);
if (cursectnum < 0)
break;
}
}