X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=c1b367a600776bad7a9a9bd163ef8de58e6d74fb;hb=7b969bbc735e5a6754610952d1f815c5d3886611;hp=40ac8d37c5289442b6a76f12d963f279975be07b;hpb=507d04844c31765e258da41a04f323b5f65f7c04;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 40ac8d37..c1b367a6 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4894,7 +4894,7 @@ static void DrawRequestDoorText(char *text) ResetFontStatus(); } -static boolean RequestDoor(char *text, unsigned int req_state) +static int RequestDoor(char *text, unsigned int req_state) { int draw_buffer_last = GetDrawtoField(); unsigned int old_door_state = GetDoorState(); @@ -4946,7 +4946,7 @@ static boolean RequestDoor(char *text, unsigned int req_state) return result; } -static boolean RequestEnvelope(char *text, unsigned int req_state) +static int RequestEnvelope(char *text, unsigned int req_state) { int draw_buffer_last = GetDrawtoField(); int result; @@ -4968,11 +4968,11 @@ static boolean RequestEnvelope(char *text, unsigned int req_state) return result; } -boolean Request(char *text, unsigned int req_state) +int Request(char *text, unsigned int req_state) { boolean game_ended = (game_status == GAME_MODE_PLAYING && checkGameEnded()); boolean overlay_enabled = GetOverlayEnabled(); - boolean result; + int result; // when showing request dialog after game ended, deactivate game panel if (game_ended)