Laser trap fix.

This commit is contained in:
Steve 2018-03-13 08:25:16 +00:00
parent 2e8af03b36
commit d6ec2dff08
1 changed files with 2 additions and 2 deletions

View File

@ -128,14 +128,14 @@ static void touch(Entity *other)
if (t->offTime != 0)
{
swapSelf(other);
other->applyDamage((int) (other->healthMax / 4));
other->applyDamage((int) (other->healthMax / 4) + 1);
swapSelf(other);
}
else
{
/* instant kill */
swapSelf(other);
other->applyDamage((int) other->health);
other->applyDamage((int) other->healthMax + 1);
swapSelf(other);
}