From b0551912a4d31c1f92e2a86509aad0f9e1510f8f Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 18:05:29 +0100 Subject: Chams: quiet material lookup, accept any fallback by name FindMaterial diagnostics are no longer logged per attempt; the chosen material is logged once. Accept any candidate name returned by FindMaterial, not just debugwhite. --- src/studio.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/studio.cpp') diff --git a/src/studio.cpp b/src/studio.cpp index d472fbc..a1aae12 100644 --- a/src/studio.cpp +++ b/src/studio.cpp @@ -204,10 +204,8 @@ void *chams_material() { return g_chams_mat; g_chams_mat_tried = true; g_chams_mat = world_find_material("models/debug/debugwhite"); - if (g_chams_mat) - logf("chams: material models/debug/debugwhite = %p", g_chams_mat); - else - logf("chams: models/debug/debugwhite not found"); + if (!g_chams_mat) + logf("chams: no usable material"); return g_chams_mat; } -- cgit v1.2.3