From: hgn Date: Thu, 26 Sep 2024 21:38:45 +0000 (+0100) Subject: accommodate inspector change X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=81eee6253c2094a6c2ed6800a0d074cede764ba3;p=carveJwlIkooP6JGAAIwe30JlM.git accommodate inspector change --- diff --git a/src/world_audio.c b/src/world_audio.c index b33d62f..be9fb72 100644 --- 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 };