From 3d323dbf2db3cbbc3a5dcbd89473901480459e41 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 20 Jan 2026 06:51:25 -0700 Subject: Prevent a dumbass bug --- src/player.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/player.c') 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 -- cgit v1.2.3