npcs and tutorial stuff
[carveJwlIkooP6JGAAIwe30JlM.git] / player.c
index b11eacb1777618a4d66740358ebf939cec038b89..bbe76ea7de91ba1491913f8db0ce696362155d39 100644 (file)
--- a/player.c
+++ b/player.c
@@ -296,10 +296,10 @@ void player__clean_refs(void)
 
    world_static.challenge_target = NULL;
    world_static.challenge_timer = 0.0f;
-   world_static.focused_entity = 0;
    world_static.active_trigger_volume_count = 0;
    world_static.last_use = 0.0;
-   world_entity_unfocus();
+   world_entity_exit_modal();
+   world_entity_clear_focus();
 
    localplayer.boundary_hash ^= NETMSG_BOUNDARY_BIT;