projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
507d048
)
fixed function signature
author
Holger Schemel
<info@artsoft.org>
Sun, 3 Dec 2023 17:29:25 +0000
(18:29 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 3 Dec 2023 17:29:25 +0000
(18:29 +0100)
src/tools.c
patch
|
blob
|
history
src/tools.h
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 40ac8d37c5289442b6a76f12d963f279975be07b..c1b367a600776bad7a9a9bd163ef8de58e6d74fb 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-4894,7
+4894,7
@@
static void DrawRequestDoorText(char *text)
ResetFontStatus();
}
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();
{
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;
}
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;
{
int draw_buffer_last = GetDrawtoField();
int result;
@@
-4968,11
+4968,11
@@
static boolean RequestEnvelope(char *text, unsigned int req_state)
return result;
}
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 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)
// when showing request dialog after game ended, deactivate game panel
if (game_ended)
diff --git
a/src/tools.h
b/src/tools.h
index 08eb907250e3158924b92e152977c02cc273dafa..5901208c879a9a000e80811791c665c8da51d1fd 100644
(file)
--- a/
src/tools.h
+++ b/
src/tools.h
@@
-214,7
+214,7
@@
void DrawNetworkPlayers(void);
void ClearNetworkPlayers(void);
void WaitForEventToContinue(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);
void InitGraphicCompatibilityInfo_Doors(void);
void InitDoors(void);
unsigned int OpenDoor(unsigned int);