projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added functions to check if game is over (and solved or not) (not used yet)
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index a49d312f928244787c273c0528ee7e8e25f611cc..e9d11c13c2a1f29398e6b88a8e957781206ac372 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-4243,6
+4243,8
@@
static int RequestHandleEvents(unsigned int req_state)
int sx, sy;
int result;
int sx, sy;
int result;
+ game.request_active = TRUE;
+
setRequestPosition(&sx, &sy, FALSE);
button_status = MB_RELEASED;
setRequestPosition(&sx, &sy, FALSE);
button_status = MB_RELEASED;
@@
-4543,6
+4545,8
@@
static int RequestHandleEvents(unsigned int req_state)
BackToFront();
}
BackToFront();
}
+ game.request_active = FALSE;
+
return result;
}
return result;
}
@@
-4555,7
+4559,7
@@
static boolean RequestDoor(char *text, unsigned int req_state)
int result;
int ty;
int result;
int ty;
- if (maxWordLengthInString(text) > MAX_REQUEST_LINE_FONT1_LEN)
+ if (maxWordLengthIn
Request
String(text) > MAX_REQUEST_LINE_FONT1_LEN)
{
max_request_line_len = MAX_REQUEST_LINE_FONT2_LEN;
font_nr = FONT_TEXT_1;
{
max_request_line_len = MAX_REQUEST_LINE_FONT2_LEN;
font_nr = FONT_TEXT_1;