Fix missing floor tiles in DAT levels
This commit is contained in:
parent
bbfa0a6e8f
commit
050c4e0322
@ -174,8 +174,9 @@ function parse_level(buf) {
|
|||||||
let cell = level.linear_cells[c];
|
let cell = level.linear_cells[c];
|
||||||
c++;
|
c++;
|
||||||
|
|
||||||
// FIXME not entirely sure how to handle floor, to be honest; should it just be blank, and blank cells get drawn as floor? eugh but then it would be drawn under floor tiles too...
|
// The upper layer uses 0x00 (floor) to indicate an empty
|
||||||
if (name === 'floor' && cell.length > 0) {
|
// space, which is probably not what we want
|
||||||
|
if (name === 'floor' && l === 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user