From 8f5c36dc62b463044cffa3ddf40347905ea39f08 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 8 Aug 2022 23:36:39 +0300 Subject: [PATCH] client: fix GoldSrc input being enabled for Android on x86 --- cl_dll/input_mouse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cl_dll/input_mouse.h b/cl_dll/input_mouse.h index 0ecd8147..814e239f 100644 --- a/cl_dll/input_mouse.h +++ b/cl_dll/input_mouse.h @@ -1,4 +1,7 @@ #pragma once + +#include "build.h" + #if !defined(INPUT_MOUSE_H) #define INPUT_MOUSE_H #include "cl_dll.h" @@ -45,7 +48,7 @@ protected: }; // No need for goldsource input support on the platforms that are not supported by GoldSource. -#if GOLDSOURCE_SUPPORT && (_WIN32 || __linux__ || __APPLE__) && (__i386 || _M_IX86) +#if GOLDSOURCE_SUPPORT && ( XASH_WIN32 || ( XASH_LINUX && !XASH_ANDROID ) || XASH_APPLE ) && XASH_X86 #define SUPPORT_GOLDSOURCE_INPUT 1 #if _WIN32