diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-20 13:51:25 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-20 13:51:25 +0000 |
| commit | 3d323dbf2db3cbbc3a5dcbd89473901480459e41 (patch) | |
| tree | 47321cc3b6587577304385b8defc9e4ab9c30236 | |
| parent | 602bfee943ac7810d0ca961851883c8909f5d7ff (diff) | |
| download | FindThings-3d323dbf2db3cbbc3a5dcbd89473901480459e41.tar.gz FindThings-3d323dbf2db3cbbc3a5dcbd89473901480459e41.tar.bz2 FindThings-3d323dbf2db3cbbc3a5dcbd89473901480459e41.zip | |
Prevent a dumbass bug
| -rw-r--r-- | src/player.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index 082c87d..a8bdf44 100644 --- a/src/player.c +++ b/src/player.c @@ -488,6 +488,13 @@ void updatePlayer(Player* player, Game* game) //DrawBoundingBox(player->box, YELLOW); + // No interaction if inventory is doing the thing. + if (game->inventory.interactingEntity != NULL) + { + player->selectedEntity = ENTITY_NONE; + return; + } + Ray ray = (Ray){ .position = player->camera.position, .direction = player->direction |
