now fall in immobile mode
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_challenge.c
index bed85870c08d2ce0b1fa0f581bdfc85b8f6ebc36..73476c718bd6baaad23dcdc5d230fa6d6efc8765 100644 (file)
@@ -4,6 +4,7 @@
 #include "entity.h"
 #include "input.h"
 #include "gui.h"
+#include "audio.h"
 
 VG_STATIC void ent_challenge_call( world_instance *world, ent_call *call ){
    u32 index = mdl_entity_id_id( call->id );
@@ -77,6 +78,7 @@ VG_STATIC void ent_challenge_preupdate( ent_challenge *challenge ){
             next = objective->id_next;
             v3_fill( objective->transform.s, 1.0f );
          }
+         audio_oneshot( &audio_challenge[5], 1.0f, 0.0f );
          return;
       }
    }
@@ -84,6 +86,7 @@ VG_STATIC void ent_challenge_preupdate( ent_challenge *challenge ){
    if( button_down( k_srbind_mback ) ){
       world_static.challenge_target = NULL;
       world_entity_unfocus();
+      audio_oneshot( &audio_challenge[4], 1.0f, 0.0f );
       return;
    }
 }