From 960e346159dbf152d9847f0998e1e717fb7dbfef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Dec 2022 06:30:59 +0100 Subject: src: add pass_mode field to tile_atlas --- editor/app.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'editor/app.cpp') diff --git a/editor/app.cpp b/editor/app.cpp index ed374dd8..ed1bac7b 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -12,10 +12,10 @@ namespace floormat { app::app(fm_settings&& opts) : M{floormat_main::create(*this, std::move(opts))}, - _floor1{loader.tile_atlas("floor-tiles", {44, 4})}, - _floor2{loader.tile_atlas("metal1", {2, 2})}, - _wall1{loader.tile_atlas("wood2", {2, 1})}, - _wall2{loader.tile_atlas("wood1", {2, 1})}, + _floor1{loader.tile_atlas("floor-tiles", {44, 4}, pass_mode::pass)}, + _floor2{loader.tile_atlas("metal1", {2, 2}, pass_mode::pass)}, + _wall1{loader.tile_atlas("wood2", {2, 1}, pass_mode::blocked)}, + _wall2{loader.tile_atlas("wood1", {2, 1}, pass_mode::blocked)}, _door{loader.anim_atlas("door-close", loader.SCENERY_PATH)}, _table{loader.anim_atlas("table", loader.SCENERY_PATH)}, _control_panel(loader.anim_atlas("control-panel", loader.SCENERY_PATH)) -- cgit v1.2.3