X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=e9d11c13c2a1f29398e6b88a8e957781206ac372;hb=8cae2f011a23232a4233e808fd1092d2871603e6;hp=a49d312f928244787c273c0528ee7e8e25f611cc;hpb=843f357b031cd1f30167bd3d3596f372d2289b6f;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index a49d312f..e9d11c13 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4243,6 +4243,8 @@ static int RequestHandleEvents(unsigned int req_state) int sx, sy; int result; + game.request_active = TRUE; + setRequestPosition(&sx, &sy, FALSE); button_status = MB_RELEASED; @@ -4543,6 +4545,8 @@ static int RequestHandleEvents(unsigned int req_state) BackToFront(); } + game.request_active = FALSE; + return result; } @@ -4555,7 +4559,7 @@ static boolean RequestDoor(char *text, unsigned int req_state) int result; int ty; - if (maxWordLengthInString(text) > MAX_REQUEST_LINE_FONT1_LEN) + if (maxWordLengthInRequestString(text) > MAX_REQUEST_LINE_FONT1_LEN) { max_request_line_len = MAX_REQUEST_LINE_FONT2_LEN; font_nr = FONT_TEXT_1;