Fix loading custom floors with junk in their modifier's high nybble
This commit is contained in:
parent
a865647eae
commit
e4ab7dde86
@ -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];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user