diff --git a/src/entities/structures/teleporter.c b/src/entities/structures/teleporter.c index 457e208..e6d56e1 100644 --- a/src/entities/structures/teleporter.c +++ b/src/entities/structures/teleporter.c @@ -140,6 +140,11 @@ static void load(cJSON *root) s->active = cJSON_GetObjectItem(root, "active")->valueint; s->tx = cJSON_GetObjectItem(root, "tx")->valueint; s->ty = cJSON_GetObjectItem(root, "ty")->valueint; + + if (game.plus & PLUS_MIRROR) + { + s->tx = MAP_PIXEL_WIDTH - s->tx; + } } static void save(cJSON *root)