accommodate inspector change master
authorhgn <hgodden00@gmail.com>
Thu, 26 Sep 2024 21:38:45 +0000 (22:38 +0100)
committerhgn <hgodden00@gmail.com>
Thu, 26 Sep 2024 21:38:45 +0000 (22:38 +0100)
src/world_audio.c

index b33d62fd30ee80d678e214583424037d3e6bb57c..be9fb722dc2a98a52aaf179a92c8f64a8e6c66d0 100644 (file)
@@ -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 };