Fix bounds for inserting into spatial grid
This commit is contained in:
@@ -61,7 +61,7 @@ void inputPrimaryAction(Game *game, InputState *input) {
|
||||
type = INPUT_SELECTED_UNITS;
|
||||
else if (selectEntity(game->entityGrid, input->mouseDownWorld, ecs_id(Harvestable)))
|
||||
type = INPUT_SELECTED_OBJECT;
|
||||
else if (selectEntity(game->entityGrid, input->mouseDownWorld, ecs_id(Buildable)))
|
||||
else if (selectEntity(game->entityGrid, input->mouseDownWorld, ecs_id(Building)))
|
||||
type = INPUT_SELECTED_BUILDING;
|
||||
selectedCount = ecs_query_entity_count(input->queries.selected);
|
||||
if (selectedCount > 0) {
|
||||
|
||||
Reference in New Issue
Block a user