diff --git a/Copy_Command.hpp b/Copy_Command.hpp index 3a0bc35..3b93f9f 100644 --- a/Copy_Command.hpp +++ b/Copy_Command.hpp @@ -75,13 +75,13 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu static float Previous_Move_Angle_Y; - if ((Command->Buttons & 2) == 2) + if ((Command->Buttons & 2) + *(__int8*)((unsigned __int32)Local_Player + 324) == 4) { Command->Move[0] = 0; if (*(__int32*)((unsigned __int32)Local_Player + 316) == -1) { - Command->Buttons &= ~(*(__int8*)((unsigned __int32)Local_Player + 324) & 2); + Command->Buttons &= ~2; } else { diff --git a/Entry_Point.cpp b/Entry_Point.cpp index a64e86a..f90eab3 100755 --- a/Entry_Point.cpp +++ b/Entry_Point.cpp @@ -161,16 +161,11 @@ __int32 __stdcall DllMain(HMODULE This_Module, unsigned __int32 Call_Reason, voi GetConsoleScreenBufferInfo(Standard_Output_Handle, &Console_Screen_Buffer_Information); - COORD Top_Left = - { - 0, + COORD Top_Left = { }; - 0 - }; + DWORD Characters_Written; - DWORD Characters_Written_Count; - - FillConsoleOutputAttribute(Standard_Output_Handle, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_BLUE, Console_Screen_Buffer_Information.dwSize.X * Console_Screen_Buffer_Information.dwSize.Y, Top_Left, &Characters_Written_Count); + FillConsoleOutputAttribute(Standard_Output_Handle, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_BLUE, Console_Screen_Buffer_Information.dwSize.X * Console_Screen_Buffer_Information.dwSize.Y, Top_Left, &Characters_Written); Engine_Module = GetModuleHandleW(L"engine.dll");