From 300e7bc03b80dd4bac61330817bf6d9f04d4231b Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 20:13:07 +0100 Subject: Use one float-precision PI constant - move PI_F into hl2h.h as constexpr 3.14159265f and remove the duplicated long-double-style literals from hl2h.cpp/esp.cpp - extra digits are compile-time only; float operations cost the same --- src/esp.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/esp.cpp') diff --git a/src/esp.cpp b/src/esp.cpp index cd0ff36..7583f26 100644 --- a/src/esp.cpp +++ b/src/esp.cpp @@ -6,8 +6,6 @@ #include #include -static constexpr float PI_F = 3.14159265358979323846f; - // ISurface slots (binary = SDK header + 4, disassembly-confirmed) enum SurfSlot { SURF_DrawSetColor = 10, SURF_FilledRect = 12, SURF_OutlinedRect = 14, -- cgit v1.2.3