aboutsummaryrefslogtreecommitdiff
path: root/sword2/console.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-09 12:45:33 +0000
committerTorbjörn Andersson2003-09-09 12:45:33 +0000
commit5bf1974a0853f9b1d303f74f45c23e6d409ecb5d (patch)
tree5318ff58394c04d5dbb72e3c5baad28c4e5340bb /sword2/console.cpp
parent555dae9feeaaf2559dfe4c9fb4fb5dbcb19404c0 (diff)
downloadscummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.tar.gz
scummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.tar.bz2
scummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.zip
Our ServiceWindows() never returns RDERR_APPCLOSED, and we always behave as
if we have the focus, so there's no need to check. svn-id: r10130
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());