aboutsummaryrefslogtreecommitdiff
path: root/sword2/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/console.cpp')
-rw-r--r--sword2/console.cpp38
1 files changed, 3 insertions, 35 deletions
diff --git a/sword2/console.cpp b/sword2/console.cpp
index 5fe5034535..e1ecbc8d4b 100644
--- a/sword2/console.cpp
+++ b/sword2/console.cpp
@@ -252,20 +252,8 @@ uint32 Tconsole(uint32 mode) //Tony9Oct96
while (TRUE)
{
- if (ServiceWindows() == RDERR_APPCLOSED)
- {
- break;
- }
-
- while (!gotTheFocus)
- {
- if (ServiceWindows() == RDERR_APPCLOSED)
- {
- breakOut = 1;
- break;
- }
+ ServiceWindows();
- }
if (breakOut)
{
break;
@@ -903,19 +891,9 @@ void Con_help(void) //Tony13Aug96
do
{
- //--------------------------------------------------
// Service windows
- while (!gotTheFocus)
- if (ServiceWindows() == RDERR_APPCLOSED)
- break;
- if (ServiceWindows() == RDERR_APPCLOSED) // if we pressed Ctrl-Q
- {
- Close_game(); //close engine systems down
- CloseAppWindow();
- exit(0); //quit the game
- }
- //--------------------------------------------------
+ ServiceWindows();
}
while(!KeyWaiting());
@@ -1133,19 +1111,9 @@ void Con_list_savegames(void) // (James05feb97) Tony1Apr97
do
{
- //--------------------------------------------------
// Service windows
- while (!gotTheFocus)
- if (ServiceWindows() == RDERR_APPCLOSED)
- break;
- if (ServiceWindows() == RDERR_APPCLOSED) // if we pressed Ctrl-Q
- {
- Close_game(); //close engine systems down
- CloseAppWindow();
- exit(0); //quit the game
- }
- //--------------------------------------------------
+ ServiceWindows();
}
while(!KeyWaiting());