X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=cfbc85cc632c1c376fcd34dfd13a1b342747d03d;hb=f2e11ad5ab49e5d051e3d3f054330b802905e4bb;hp=e5d2985a3154f8bd972cd9c100d625831d943c38;hpb=4096fcbae692bfbf2f6506786659872a60b31693;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index e5d2985a..cfbc85cc 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1521,7 +1521,7 @@ static void DrawMicroLevelExt(int xpos, int ypos, int from_x, int from_y) if (lx >= 0 && lx < lev_fieldx && ly >= 0 && ly < lev_fieldy) DrawMicroElement(xpos + x * MICRO_TILEX, ypos + y * MICRO_TILEY, - Ur[lx][ly]); + level.field[lx][ly]); else if (lx >= -1 && lx < lev_fieldx+1 && ly >= -1 && ly < lev_fieldy+1 && BorderElement != EL_EMPTY) DrawMicroElement(xpos + x * MICRO_TILEX, ypos + y * MICRO_TILEY, @@ -1712,6 +1712,10 @@ boolean Request(char *text, unsigned int req_state) old_door_state = GetDoorState(); + /* simulate releasing mouse button over last gadget, if still pressed */ + if (button_status) + HandleGadgets(-1, -1, 0); + UnmapAllGadgets(); CloseDoor(DOOR_CLOSE_1);