Reverting teleporter update: breaks later levels.

This commit is contained in:
Steve 2018-02-11 12:36:42 +00:00
parent a67740f6ce
commit 7c2120d0d2
1 changed files with 1 additions and 4 deletions

View File

@ -83,12 +83,9 @@ static void action(void)
static void touch(Entity *other)
{
int mostlyInside;
float tx, ty;
mostlyInside = abs((self->x + (self->w / 2)) - other->x) < 8;
if (self->active && mostlyInside && other != self && (other->flags & (EF_TELEPORTING | EF_NO_TELEPORT)) == 0)
if (self->active && other != self && (other->flags & (EF_TELEPORTING | EF_NO_TELEPORT)) == 0)
{
tx = self->tx;
other->tx += self->w / 2;