This commit is contained in:
explorer 2024-11-09 17:36:57 +03:00
parent bdf8f51f29
commit 82e3a8fd55
2 changed files with 5 additions and 10 deletions

View File

@ -75,13 +75,13 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
static float Previous_Move_Angle_Y; 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; Command->Move[0] = 0;
if (*(__int32*)((unsigned __int32)Local_Player + 316) == -1) if (*(__int32*)((unsigned __int32)Local_Player + 316) == -1)
{ {
Command->Buttons &= ~(*(__int8*)((unsigned __int32)Local_Player + 324) & 2); Command->Buttons &= ~2;
} }
else else
{ {

View File

@ -161,16 +161,11 @@ __int32 __stdcall DllMain(HMODULE This_Module, unsigned __int32 Call_Reason, voi
GetConsoleScreenBufferInfo(Standard_Output_Handle, &Console_Screen_Buffer_Information); GetConsoleScreenBufferInfo(Standard_Output_Handle, &Console_Screen_Buffer_Information);
COORD Top_Left = COORD Top_Left = { };
{
0,
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);
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);
Engine_Module = GetModuleHandleW(L"engine.dll"); Engine_Module = GetModuleHandleW(L"engine.dll");