From 8b60a44b0998a73a27ee2aa0dc74f369dbd2c0f9 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Mon, 14 Dec 2020 23:39:07 -0700 Subject: [PATCH] Fix loading of the initial entry direction for railroads --- js/format-c2g.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/format-c2g.js b/js/format-c2g.js index 390553e..352da4f 100644 --- a/js/format-c2g.js +++ b/js/format-c2g.js @@ -419,7 +419,7 @@ const TILE_ENCODING = { tile.track_switch = null; } // Initial actor facing is in the highest nybble - tile.entered_direction = (mask >> 12) & 0x03; + tile.entered_direction = DIRECTION_ORDER[(mask >> 12) & 0x03]; }, encode(tile) { let ret = tile.tracks & 0x3f;