Minor fixes

This commit is contained in:
Grinch_ 2021-02-13 15:08:37 +06:00
parent e4ee4c507d
commit 4a5e5c6c9d
2 changed files with 6 additions and 7 deletions

View File

@ -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();

View File

@ -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;