mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-19 01:24:12 +02:00
Fixed a bug were incorrect UI controls were taking focus.
This commit is contained in:
@@ -201,6 +201,9 @@ int GadgetClass::Clicked_On(KeyNumType & key, unsigned flags, int mousex, int mo
|
|||||||
*/
|
*/
|
||||||
flags &= Flags;
|
flags &= Flags;
|
||||||
|
|
||||||
|
if (mousex - X < 0 || mousey - Y < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** If keyboard input should be processed by this "gadget" and keyboard input is
|
** If keyboard input should be processed by this "gadget" and keyboard input is
|
||||||
** detected, then always call the action function. It is up to the action function
|
** detected, then always call the action function. It is up to the action function
|
||||||
|
|||||||
Reference in New Issue
Block a user