summaryrefslogtreecommitdiffstats
path: root/src/esp.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 11:44:47 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 11:44:47 +0100
commit4d0e4d781b1da12e17e3b38b7f80b44890b929bf (patch)
treeb904c73e28c83175b88e3eeefa0b6d87ba3ffc08 /src/esp.cpp
parentProps: only substitute colour during studio draws (no forced set) (diff)
downloadhl2h-4d0e4d781b1da12e17e3b38b7f80b44890b929bf.tar.gz
hl2h-4d0e4d781b1da12e17e3b38b7f80b44890b929bf.zip
Props: install the studio hooks again
The entity-path rewrite of prop_tint_update dropped studio_props_init(), so the minimal IStudioRender hooks were never installed (no studio: log lines). Call it while the prop tint is enabled.
Diffstat (limited to 'src/esp.cpp')
-rw-r--r--src/esp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/esp.cpp b/src/esp.cpp
index 64c1525..4a6b513 100644
--- a/src/esp.cpp
+++ b/src/esp.cpp
@@ -1414,6 +1414,8 @@ void prop_tint_update() {
1414 static bool logged_missing = false; 1414 static bool logged_missing = false;
1415 static bool logged_touched = false; 1415 static bool logged_touched = false;
1416 bool on = feature_active(FEAT_WORLD_TINT) && g_tint_prop_on; 1416 bool on = feature_active(FEAT_WORLD_TINT) && g_tint_prop_on;
1417 if (on)
1418 studio_props_init();
1417 if (!on && !applied) 1419 if (!on && !applied)
1418 return; 1420 return;
1419 if (!g_iface.entitylist || g_net.clr_render < 0) { 1421 if (!g_iface.entitylist || g_net.clr_render < 0) {