diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 12:59:50 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 12:59:50 +0100 |
| commit | bc03115d0f024d7cc8f74107333b9a4a143555d5 (patch) | |
| tree | 7b23eea206799674d54890f25fdd1a7bec2fed83 /src/studio.cpp | |
| parent | ESP: render damage tags as small left-side labels (diff) | |
| download | hl2h-bc03115d0f024d7cc8f74107333b9a4a143555d5.tar.gz hl2h-bc03115d0f024d7cc8f74107333b9a4a143555d5.zip | |
Studio: drop the prop draw diagnostic
Props render correctly with all seven DrawModel arguments forwarded; the
per-draw model/client/origin log is no longer needed.
Diffstat (limited to 'src/studio.cpp')
| -rw-r--r-- | src/studio.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/studio.cpp b/src/studio.cpp index 2d6c826..23be97f 100644 --- a/src/studio.cpp +++ b/src/studio.cpp | |||
| @@ -115,13 +115,6 @@ void hook_draw_model(void *self, void *results, void *info, void *bone, | |||
| 115 | int flags) { | 115 | int flags) { |
| 116 | const char *model = info_model_name(info); | 116 | const char *model = info_model_name(info); |
| 117 | bool prop = prop_tint_on() && is_prop_model(model); | 117 | bool prop = prop_tint_on() && is_prop_model(model); |
| 118 | static int prop_logs = 0; | ||
| 119 | if (prop && prop_logs < 12) { | ||
| 120 | prop_logs++; | ||
| 121 | void *client = info ? *(void **)((uintptr_t)info + 24) : nullptr; | ||
| 122 | logf("studio: prop draw model=\"%s\" client=%p origin=%p flags=%d", | ||
| 123 | model ? model : "?", client, model_origin, flags); | ||
| 124 | } | ||
| 125 | if (prop) { | 118 | if (prop) { |
| 126 | float c[4]; | 119 | float c[4]; |
| 127 | prop_color(c); | 120 | prop_color(c); |
