aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorJonathan Gray2003-08-30 15:21:51 +0000
committerJonathan Gray2003-08-30 15:21:51 +0000
commit5825a28330fc7be2260407119440b7e1b9b86789 (patch)
tree3c9b3861d0ce15e81e251fd1a2d160b45949155b /sword2
parent23ba54ec929c745d3f1f8f126ad167245a4651b9 (diff)
downloadscummvm-rg350-5825a28330fc7be2260407119440b7e1b9b86789.tar.gz
scummvm-rg350-5825a28330fc7be2260407119440b7e1b9b86789.tar.bz2
scummvm-rg350-5825a28330fc7be2260407119440b7e1b9b86789.zip
properly close down when playing demo
svn-id: r9921
Diffstat (limited to 'sword2')
-rw-r--r--sword2/function.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp
index 2d602627e1..753c1a61a6 100644
--- a/sword2/function.cpp
+++ b/sword2/function.cpp
@@ -442,15 +442,16 @@ int32 FN_play_credits(int32 *params)
}
// returns non-zero if Ctrl-Q was pressed to quit the game during the credits
-
- if (rv || DEMO) // if Ctrl-Q pressed during credits, or if this is the playable demo
+*/
+ //if (rv || DEMO) // if Ctrl-Q pressed during credits, or if this is the playable demo
+ if (g_sword2->_gameId == GID_SWORD2_DEMO)
{
Close_game(); //close engine systems down
CloseAppWindow();
exit(0); // quit the game
}
-*/
+
return (IR_CONT);
}
//------------------------------------------------------------------------------------