From b08d3b7b1b06fd2e9dd09eef248a10d33b8d1742 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Sat, 6 Mar 2021 13:06:09 +0100 Subject: gst interpolations, particle systems, timing and gui fix --- hud/hud.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'hud/hud.c') diff --git a/hud/hud.c b/hud/hud.c index 4a7f5a8..3376287 100644 --- a/hud/hud.c +++ b/hud/hud.c @@ -715,13 +715,15 @@ void hud_process_overlay_game (graphic_settings *gs, hud *h, MKb *mkb, h->og.start_battle_flag = 1; } - // edit unit - int x = (int)((mkb->mx+gst->cam[0])/32); - int y = (int)((mkb->my+gst->cam[1])/32); - if (x >= 0 && y >= 0 && x < m->sx && y < m->sy) { - if (ar->grid[xytoi(m,x,y)] != NULL) { - hud_open_fnu(h, info, &ar->grid[xytoi(m,x,y)]->info, -2); - h->og.temp_place = -1; + if (SDL_GetModState() & KMOD_SHIFT) { + // edit unit + int x = (int)((mkb->mx+gst->cam[0])/32); + int y = (int)((mkb->my+gst->cam[1])/32); + if (x >= 0 && y >= 0 && x < m->sx && y < m->sy) { + if (ar->grid[xytoi(m,x,y)] != NULL) { + hud_open_fnu(h, info, &ar->grid[xytoi(m,x,y)]->info, -2); + h->og.temp_place = -1; + } } } } -- cgit v1.2.3-54-g00ecf