Need a SpatialMap::get_all that returns all things at that spot because can't pickup potion after skull #81

Closed
opened 2025-08-07 03:47:39 +00:00 by zedshaw · 0 comments
zedshaw commented 2025-08-07 03:47:39 +00:00 (Migrated from lcthw.dev)

If there's a potion or other loot on the ground, and an enemy dies there, then you can't pick up the potion. Or, if an enemy is in front of you and you drop a potion at their feet then it stops all combat. This is because the SpatialMap::get() returns just one entity, the first one, so the others never get accessed unless each on e is removed.

If there's a potion or other loot on the ground, and an enemy dies there, then you can't pick up the potion. Or, if an enemy is in front of you and you drop a potion at their feet then it stops all combat. This is because the SpatialMap::get() returns just one entity, the first one, so the others never get accessed unless each on e is removed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#81
No description provided.