mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
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:
parent
9b04832153
commit
9d04c42219
1 changed files with 6 additions and 0 deletions
|
@ -1775,6 +1775,7 @@ ACTOR_STATIC void G_MoveStandables(void)
|
||||||
if (actor[i].t_data[6] != 1)
|
if (actor[i].t_data[6] != 1)
|
||||||
{
|
{
|
||||||
// we're on a trip wire
|
// we're on a trip wire
|
||||||
|
int16_t cursectnum;
|
||||||
|
|
||||||
while (x > 0)
|
while (x > 0)
|
||||||
{
|
{
|
||||||
|
@ -1792,6 +1793,11 @@ ACTOR_STATIC void G_MoveStandables(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
x -= 1024;
|
x -= 1024;
|
||||||
|
|
||||||
|
cursectnum = s->sectnum;
|
||||||
|
updatesector(s->x, s->y, &cursectnum);
|
||||||
|
if (cursectnum < 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue