X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.c;h=f5176eb21e69701b0f45aa887d1a8d7a4736d216;hb=99376ce8eaf30125fb08dd5dc8b534800580fe47;hp=12f8cbdc1bf11e7dcba48e2dd263c3fd4b9738cd;hpb=6190deb68aa1c9e92ede62ea05c2a755bf5516de;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index 12f8cbd..f5176eb 100644 --- a/player.c +++ b/player.c @@ -165,7 +165,7 @@ void player__pass_gate( player_instance *player, ent_gate *gate ) m4x3_mulv( gate->transport, player->cam.pos, player->cam.pos ); if( gate->flags & k_ent_gate_nonlocal ) - world_static.active_instance = gate->target; + world_set_active_instance( gate->target ); audio_lock(); audio_oneshot( &audio_gate_pass, 1.0f, 0.0f ); @@ -282,6 +282,9 @@ PLAYER_API void player__spawn( player_instance *player, ent_spawn *rp ){ player->immobile = 0; player->gate_waiting = NULL; world_static.last_use = 0.0; + world_static.focused_entity = 0; + world_static.challenge_target = NULL; + world_static.challenge_timer = 0.0f; world_entity_unfocus(); if( _player_reset[ player->subsystem ] )