|
@@ -65,7 +65,7 @@ pub fn world_from_file<P: AsRef<Path>>(w: &mut specs::World, path: P) {
|
|
DrawLayer::Decoration => e.with(Decoration),
|
|
DrawLayer::Decoration => e.with(Decoration),
|
|
};
|
|
};
|
|
|
|
|
|
- let e = if tilesets[0].tiles[n as usize].properties["pass"]
|
|
|
|
|
|
+ let e = if tilesets[0].tiles[(n-1) as usize].properties["pass"]
|
|
== tiled::PropertyValue::BoolValue(false)
|
|
== tiled::PropertyValue::BoolValue(false)
|
|
{
|
|
{
|
|
e.with(Blocking::new())
|
|
e.with(Blocking::new())
|