projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added option to draw virtual buttons outlined
[rocksndiamonds.git]
/
src
/
libgame
/
gadgets.c
diff --git
a/src/libgame/gadgets.c
b/src/libgame/gadgets.c
index 668641bd30be64133832e37550cbc06eccedd803..a797c75475a1a9b41bf9f6cb2e25a79a67f5f406 100644
(file)
--- a/
src/libgame/gadgets.c
+++ b/
src/libgame/gadgets.c
@@
-1481,7
+1481,7
@@
static boolean insideSelectboxArea(struct GadgetInfo *gi, int mx, int my)
void ClickOnGadget(struct GadgetInfo *gi, int button)
{
void ClickOnGadget(struct GadgetInfo *gi, int button)
{
- if (!gi->mapped)
+ if (
gi == NULL || gi->deactivated ||
!gi->mapped)
return;
/* simulate releasing mouse button over last gadget, if still pressed */
return;
/* simulate releasing mouse button over last gadget, if still pressed */