From: Holger Schemel Date: Sun, 3 Dec 2023 17:29:25 +0000 (+0100) Subject: fixed function signature X-Git-Tag: 4.3.8.0~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7b969bbc735e5a6754610952d1f815c5d3886611;p=rocksndiamonds.git fixed function signature --- 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);