Correctly mirror doors in mirror mode.
This commit is contained in:
parent
230d28cef7
commit
455db3d077
|
@ -77,7 +77,7 @@ static void init(void)
|
||||||
s->closedY = s->y;
|
s->closedY = s->y;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (game.plus != PLUS_NONE)
|
if (game.plus & PLUS_ALL_OBJS)
|
||||||
{
|
{
|
||||||
s->alive = ALIVE_DEAD;
|
s->alive = ALIVE_DEAD;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1152,6 +1152,12 @@ static void mirror(void)
|
||||||
switch (self->type)
|
switch (self->type)
|
||||||
{
|
{
|
||||||
case ET_DOOR:
|
case ET_DOOR:
|
||||||
|
s = (Structure*)self;
|
||||||
|
if (s->closedX == s->x)
|
||||||
|
{
|
||||||
|
s->closedX -= self->w;
|
||||||
|
s->tx -= self->w;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ET_LIFT:
|
case ET_LIFT:
|
||||||
|
|
Loading…
Reference in New Issue