diff --git a/src/client/component/demo_playback.cpp b/src/client/component/demo_playback.cpp index 0d5ed59..7199204 100644 --- a/src/client/component/demo_playback.cpp +++ b/src/client/component/demo_playback.cpp @@ -25,8 +25,8 @@ namespace // demo class [[nodiscard]] bool rewind_demo(std::optional msec); [[nodiscard]] bool start(std::filesystem::path& path, bool repeat); [[nodiscard]] std::optional> restart(); - template auto use_predicted_data(Func func, Args&&... args); - template auto handle_fast_forward(Func func, Args&&... args); + template [[nodiscard]] auto use_predicted_data(Func func, Args&&... args); + template [[nodiscard]] auto handle_fast_forward(Func func, Args&&... args); void parse_demo_wrapper(); void stop(); diff --git a/src/client/component/demo_sv_recording.cpp b/src/client/component/demo_sv_recording.cpp index 29f4f1c..9ab3e7f 100644 --- a/src/client/component/demo_sv_recording.cpp +++ b/src/client/component/demo_sv_recording.cpp @@ -83,15 +83,18 @@ namespace // checked client num class return std::isdigit(c); }); - auto value = std::numeric_limits::max(); - const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec; - - if (all_digits && ec == std::errc{}) + if (all_digits) { - const auto client_num = check_client_num(value); - if (client_num) + auto value = std::numeric_limits::max(); + const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec; + + if (ec == std::errc{}) { - return client_num; + const auto client_num = check_client_num(value); + if (client_num) + { + return client_num; + } } } } diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 652d532..a602734 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -158,7 +158,7 @@ namespace game WEAK symbol LUI_IntermissionBegan{0, 0x1401CEB40}; WEAK symbol LUI_OpenMenu{0x1403FD460, 0x1404B3610}; - WEAK symbol LUI_Layout{ 0, 0x1401CF060 }; + WEAK symbol LUI_Layout{0, 0x1401CF060}; // Made up name, replaced by ScopedCriticalSection on Black Ops 3 WEAK symbol LUI_EnterCriticalSection{0x1401AE940, 0x1401CD040}; WEAK symbol LUI_LeaveCriticalSection{0x1401B0AA0, 0x1401CF1A0};