Fix loading of the initial entry direction for railroads

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-14 23:39:07 -07:00
parent 2103c649f6
commit 8b60a44b09

View File

@ -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;