projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed ignoring clicks on global animations after executing event actions
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 78a371e33896c5b7fd2af2d322f1b28792855935..96fa321fb09a10f26898014f98dfd79846f3a7fa 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-15470,7
+15470,8
@@
void CreateGameButtons()
for (i = 0; i < NUM_GAME_BUTTONS; i++)
{
for (i = 0; i < NUM_GAME_BUTTONS; i++)
{
- struct GraphicInfo *gfx = &graphic_info[gamebutton_info[i].graphic];
+ int graphic = gamebutton_info[i].graphic;
+ struct GraphicInfo *gfx = &graphic_info[graphic];
struct XY *pos = gamebutton_info[i].pos;
struct GadgetInfo *gi;
int button_type;
struct XY *pos = gamebutton_info[i].pos;
struct GadgetInfo *gi;
int button_type;
@@
-15524,6
+15525,7
@@
void CreateGameButtons()
}
gi = CreateGadget(GDI_CUSTOM_ID, id,
}
gi = CreateGadget(GDI_CUSTOM_ID, id,
+ GDI_IMAGE_ID, graphic,
GDI_INFO_TEXT, gamebutton_info[i].infotext,
GDI_X, base_x + GDI_ACTIVE_POS(pos->x),
GDI_Y, base_y + GDI_ACTIVE_POS(pos->y),
GDI_INFO_TEXT, gamebutton_info[i].infotext,
GDI_X, base_x + GDI_ACTIVE_POS(pos->x),
GDI_Y, base_y + GDI_ACTIVE_POS(pos->y),