Need to limit per region growth
This commit is contained in:
@@ -676,6 +676,7 @@ void BuildingLayoutGraph::graph_module::growth_module(flecs::world &ecs,
|
|||||||
.each([this](flecs::entity floor_e,
|
.each([this](flecs::entity floor_e,
|
||||||
WorldEditor::components::buildings_layout_grid_floor
|
WorldEditor::components::buildings_layout_grid_floor
|
||||||
&fl) {
|
&fl) {
|
||||||
|
/* TODO: limit growth per region too */
|
||||||
struct grid_calc grid(fl.grid_size);
|
struct grid_calc grid(fl.grid_size);
|
||||||
if (fl.size_left <= 0)
|
if (fl.size_left <= 0)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user