projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server status lever and display
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_challenge.c
diff --git
a/ent_challenge.c
b/ent_challenge.c
index b8f2f5e27ef6a083c822557455df179a44115222..72149b1a4d4dd72327c01b71ad6207cb8a8b2fbe 100644
(file)
--- a/
ent_challenge.c
+++ b/
ent_challenge.c
@@
-67,8
+67,10
@@
static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
world_static.focused_entity = 0;
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
world_static.focused_entity = 0;
+ audio_lock();
audio_oneshot_3d( &audio_challenge[6], localplayer.rb.co,
30.0f, 1.0f );
audio_oneshot_3d( &audio_challenge[6], localplayer.rb.co,
30.0f, 1.0f );
+ audio_unlock();
}
return;
}
}
return;
}
@@
-92,7
+94,9
@@
static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
next = objective->id_next;
v3_fill( objective->transform.s, 1.0f );
}
next = objective->id_next;
v3_fill( objective->transform.s, 1.0f );
}
+ audio_lock();
audio_oneshot( &audio_challenge[5], 1.0f, 0.0f );
audio_oneshot( &audio_challenge[5], 1.0f, 0.0f );
+ audio_unlock();
return;
}
}
return;
}
}
@@
-101,7
+105,9
@@
static void ent_challenge_preupdate( ent_challenge *challenge, int active ){
world_static.challenge_target = NULL;
world_entity_unfocus();
gui_helper_clear();
world_static.challenge_target = NULL;
world_entity_unfocus();
gui_helper_clear();
+ audio_lock();
audio_oneshot( &audio_challenge[4], 1.0f, 0.0f );
audio_oneshot( &audio_challenge[4], 1.0f, 0.0f );
+ audio_unlock();
return;
}
}
return;
}
}