diff options
author | Torbjörn Andersson | 2003-09-09 12:45:33 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-09 12:45:33 +0000 |
commit | 5bf1974a0853f9b1d303f74f45c23e6d409ecb5d (patch) | |
tree | 5318ff58394c04d5dbb72e3c5baad28c4e5340bb /sword2/logic.cpp | |
parent | 555dae9feeaaf2559dfe4c9fb4fb5dbcb19404c0 (diff) | |
download | scummvm-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/logic.cpp')
-rw-r--r-- | sword2/logic.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sword2/logic.cpp b/sword2/logic.cpp index 61a6ba8367..1642ed8ed9 100644 --- a/sword2/logic.cpp +++ b/sword2/logic.cpp @@ -314,19 +314,7 @@ uint32 logic::Examine_run_list(void) //Tony25Oct96 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()); |