Off-by-one error in tiled map reading
Getty Ritter
6 years ago
| 65 | 65 |
DrawLayer::Decoration => e.with(Decoration),
|
| 66 | 66 |
};
|
| 67 | 67 |
|
| 68 | |
let e = if tilesets[0].tiles[n as usize].properties["pass"]
|
| 68 |
let e = if tilesets[0].tiles[(n-1) as usize].properties["pass"]
|
| 69 | 69 |
== tiled::PropertyValue::BoolValue(false)
|
| 70 | 70 |
{
|
| 71 | 71 |
e.with(Blocking::new())
|