Correctly mirror doors in mirror mode.

This commit is contained in:
Steve 2018-05-14 08:23:54 +01:00
parent 230d28cef7
commit 455db3d077
2 changed files with 7 additions and 1 deletions

View File

@ -77,7 +77,7 @@ static void init(void)
s->closedY = s->y;
}
if (game.plus != PLUS_NONE)
if (game.plus & PLUS_ALL_OBJS)
{
s->alive = ALIVE_DEAD;
}

View File

@ -1152,6 +1152,12 @@ static void mirror(void)
switch (self->type)
{
case ET_DOOR:
s = (Structure*)self;
if (s->closedX == s->x)
{
s->closedX -= self->w;
s->tx -= self->w;
}
break;
case ET_LIFT: