Fix loading custom floors with junk in their modifier's high nybble

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-14 22:06:01 -07:00
parent a865647eae
commit e4ab7dde86

View File

@ -1050,7 +1050,7 @@ export function parse_level(buf, number = 1) {
} }
else if (name instanceof Array) { else if (name instanceof Array) {
// Custom floors and walls are one of several options, chosen by modifier // Custom floors and walls are one of several options, chosen by modifier
name = name[modifier]; name = name[modifier % name.length];
} }
let type = TILE_TYPES[name]; let type = TILE_TYPES[name];