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/hl2h.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/hl2h.cpp') diff --git a/src/hl2h.cpp b/src/hl2h.cpp index f3aa26f..a49acc2 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp @@ -39,8 +39,6 @@ Vector g_cam_view{0, 0, 0}; // vector math // --------------------------------------------------------------------------- -static constexpr float PI_F = 3.14159265358979323846f; - QAngle vector_angles(const Vector &forward) { QAngle a{}; a.z = 0; -- cgit v1.2.3