hook GetKeyState and GetAsyncKeyState for infantry

This commit is contained in:
FunkyFr3sh 2024-03-20 05:35:36 +01:00
parent c52544ad6f
commit 871ccbf196
6 changed files with 35 additions and 3 deletions

View file

@ -667,7 +667,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
{
/* let it pass through once (tiberian sun) */
static BOOL one_time;
if (wParam && !one_time && g_config.tshack)
{
one_time = TRUE;