mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-22 11:42:01 +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,10 +1103,16 @@ void(float index, float type) Button_Click =
|
||||||
{
|
{
|
||||||
float btnscale = 0.030*g_height;
|
float btnscale = 0.030*g_height;
|
||||||
|
|
||||||
//don't click if not active
|
// don't click if not active
|
||||||
if(buttons[index].active == -1)
|
if(buttons[index].active == -1)
|
||||||
return;
|
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;
|
local vector pos = buttons[index].pos;
|
||||||
pos_x *= g_width;
|
pos_x *= g_width;
|
||||||
pos_y *= g_height;
|
pos_y *= g_height;
|
||||||
|
|
Loading…
Reference in a new issue