From 4a5e5c6c9d1d189387338ba56e011e9b55cd9a38 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Sat, 13 Feb 2021 15:08:37 +0600 Subject: [PATCH] Minor fixes --- src/Game.cpp | 4 ++-- src/Hook.cpp | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Game.cpp b/src/Game.cpp index 88107aa..f527ad3 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -396,8 +396,8 @@ of LS without completing missions")) ImGui::NextColumn(); - if (Ui::CheckboxWithHint("Hard mode", &hard_mode::state, "Makes the game more challanging to play. " -"Lowers\narmour, health, stamina etc.")) + if (Ui::CheckboxWithHint("Hard mode", &hard_mode::state, "Makes the game more challanging to play. \n\ +Lowers armour, health, stamina etc.")) { CPlayerPed *player = FindPlayerPed(); diff --git a/src/Hook.cpp b/src/Hook.cpp index 758510c..f1da21c 100644 --- a/src/Hook.cpp +++ b/src/Hook.cpp @@ -19,10 +19,10 @@ LRESULT Hook::WndProc(const HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) if (Hook::show_mouse) { patch::Nop(0x4EB9F4, 5); // disable radio scroll - Call<0x541BD0>(); // CPad::ClearMouseHistory + CPad::ClearMouseHistory(); if (uMsg == WM_MOUSEWHEEL) - CallWindowProc(oWndProc, hWnd, uMsg, 1.0, lParam); + return 1; } else patch::SetRaw(0x4EB9F4, (void*)"\xE8\x67\xFC\xFF\xFF", 5); // enable radio scroll @@ -165,9 +165,8 @@ void Hook::ShowMouse(bool state) if (mouse_visibility != show_mouse) { - // Broken in psdk - Call<0x541BD0>(); // CPad::ClearMouseHistory - Call<0x541DD0>(); // CPad::UpdatePads + CPad::ClearMouseHistory(); + CPad::UpdatePads(); ImGui::GetIO().MouseDrawCursor = state; CPad::NewMouseControllerState.X = 0;