switch to entity list
[carveJwlIkooP6JGAAIwe30JlM.git] / player.c
index b0888ea6e00249b4040aec7b64ea900605254c96..b67e050abd8807c832b1cc4fa0cd86f5025acc7a 100644 (file)
--- a/player.c
+++ b/player.c
@@ -167,8 +167,6 @@ void player__pass_gate( player_instance *player, ent_gate *gate )
    if( gate->type == k_gate_type_nonlocel )
       world_static.active_world = gate->target;
 
-   world_volumes.inside = 0;
-
    audio_lock();
    audio_oneshot( &audio_gate_pass, 1.0f, 0.0f );
    audio_unlock();
@@ -281,6 +279,11 @@ PLAYER_API void player__kill( player_instance *player ){
    
 }
 
+PLAYER_API void player__begin_holdout( player_instance *player ){
+   memcpy( &player->holdout_pose, &player->pose, sizeof(player->pose) );
+   player->holdout_time = 1.0f;
+}
+
 /* implementation */
 #include "player_common.c"
 #include "player_walk.c"