mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-20 18:52:36 +00:00
FTE/CLIENT: Fix Web buttons activiating on EXE
This commit is contained in:
parent
d06d7e0e37
commit
a71899154b
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue