projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3cea0c
)
accommodate inspector change
author
hgn
<hgodden00@gmail.com>
Thu, 26 Sep 2024 21:38:45 +0000
(22:38 +0100)
committer
hgn
<hgodden00@gmail.com>
Thu, 26 Sep 2024 21:38:45 +0000
(22:38 +0100)
src/world_audio.c
patch
|
blob
|
history
diff --git
a/src/world_audio.c
b/src/world_audio.c
index b33d62fd30ee80d678e214583424037d3e6bb57c..be9fb722dc2a98a52aaf179a92c8f64a8e6c66d0 100644
(file)
--- a/
src/world_audio.c
+++ b/
src/world_audio.c
@@
-113,9
+113,12
@@
void world_audio_sample_distances( v3f co, int *index, float *value )
distances[si] = dist;
- if( vg_audio.debug_ui && vg_lines.enabled ){
- for( int i=0; i<14; i++ ){
- if( distances[i] != 200.0f ){
+ if( vg_audio.inspector_open && vg_lines.enabled )
+ {
+ for( int i=0; i<14; i++ )
+ {
+ if( distances[i] != 200.0f )
+ {
u32 colours[] = { VG__RED, VG__BLUE, VG__GREEN,
VG__CYAN, VG__YELOW, VG__PINK,
VG__WHITE };