From 7b969bbc735e5a6754610952d1f815c5d3886611 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 3 Dec 2023 18:29:25 +0100 Subject: [PATCH] fixed function signature --- src/tools.c | 8 ++++---- src/tools.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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) diff --git a/src/tools.h b/src/tools.h index 08eb9072..5901208c 100644 --- a/src/tools.h +++ b/src/tools.h @@ -214,7 +214,7 @@ void DrawNetworkPlayers(void); void ClearNetworkPlayers(void); void WaitForEventToContinue(void); -boolean Request(char *, unsigned int); +int Request(char *, unsigned int); void InitGraphicCompatibilityInfo_Doors(void); void InitDoors(void); unsigned int OpenDoor(unsigned int); -- 2.34.1