|
|
@ -9,10 +9,6 @@ Pathing compute_paths(gui::FSM& fsm, int& count_out) { |
|
|
|
Pathing paths{matrix::width(walls_copy), matrix::height(walls_copy)}; |
|
|
|
Pathing paths{matrix::width(walls_copy), matrix::height(walls_copy)}; |
|
|
|
count_out = 0; |
|
|
|
count_out = 0; |
|
|
|
|
|
|
|
|
|
|
|
// BUG: using walls() will cause a map full of walls?
|
|
|
|
|
|
|
|
dbc::check(matrix::width(walls_copy) == paths.$width, "WTF the maps's walls width changed?"); |
|
|
|
|
|
|
|
dbc::check(matrix::height(walls_copy) == paths.$height, "WTF the maps's walls height changed?"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fsm.$level.world->query<components::Position>( |
|
|
|
fsm.$level.world->query<components::Position>( |
|
|
|
[&](const auto ent, auto& position) { |
|
|
|
[&](const auto ent, auto& position) { |
|
|
|
if(ent != fsm.$level.player) { |
|
|
|
if(ent != fsm.$level.player) { |
|
|
|