FTE/CLIENT: Fix Web buttons activiating on EXE

This commit is contained in:
cypress 2023-07-18 13:05:09 -04:00
parent d06d7e0e37
commit a71899154b

View file

@ -1103,9 +1103,15 @@ void(float index, float type) Button_Click =
{
float btnscale = 0.030*g_height;
//don't click if not active
// don't click if not active
if(buttons[index].active == -1)
return;
// also don't click if it's not on this platform
if (platform_is_web && buttons[index].platform_dependency == OPTION_EXE_ONLY)
return;
if (!platform_is_web && buttons[index].platform_dependency == OPTION_WEB_ONLY)
return;
local vector pos = buttons[index].pos;
pos_x *= g_width;