diff options
Diffstat (limited to 'src/player.c')
| -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 |
