Fix for laser trap not killing some enemies.
This commit is contained in:
parent
60261932b0
commit
04416e52ab
|
@ -123,6 +123,7 @@ static void touch(Entity *other)
|
||||||
{
|
{
|
||||||
other->dx = rrnd(-12, 12);
|
other->dx = rrnd(-12, 12);
|
||||||
other->dy = rrnd(-8, 0);
|
other->dy = rrnd(-8, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (t->offTime != 0)
|
if (t->offTime != 0)
|
||||||
{
|
{
|
||||||
|
@ -139,15 +140,7 @@ static void touch(Entity *other)
|
||||||
}
|
}
|
||||||
|
|
||||||
playBattleSound(SND_FLESH_HIT, other->uniqueId % MAX_SND_CHANNELS, other->x, other->y);
|
playBattleSound(SND_FLESH_HIT, other->uniqueId % MAX_SND_CHANNELS, other->x, other->y);
|
||||||
|
|
||||||
playBattleSound(SND_ELECTRIC_HIT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y);
|
playBattleSound(SND_ELECTRIC_HIT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y);
|
||||||
}
|
|
||||||
|
|
||||||
if (other == (Entity*)world.bob && world.bob->stunTimer == 0)
|
|
||||||
{
|
|
||||||
stunBob();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (other->flags & EF_EXPLODES)
|
if (other->flags & EF_EXPLODES)
|
||||||
{
|
{
|
||||||
|
@ -157,6 +150,12 @@ static void touch(Entity *other)
|
||||||
{
|
{
|
||||||
addSmallFleshChunk(t->x, t->y);
|
addSmallFleshChunk(t->x, t->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (other == (Entity*)world.bob && world.bob->stunTimer == 0)
|
||||||
|
{
|
||||||
|
stunBob();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue