shithub: duke3d

Download patch

ref: dc86e19872966640fe3d87f016181f2a705969e9
parent: ac03e8e1db6a30e31274f6c9de8bf3e2f6c1bc28
author: darealshinji <djcj@gmx.de>
date: Mon Apr 27 13:52:39 EDT 2015

Enable Alt+F4 to quick exit the game

--- a/Game/src/game.c
+++ b/Game/src/game.c
@@ -789,7 +789,8 @@
     input *osyn, *nsyn;
 
     //Check if we should quit the game.
-    if(qe == 0 && KB_KeyPressed(sc_LeftControl) && KB_KeyPressed(sc_LeftAlt) && KB_KeyPressed(sc_Delete))
+    if ((qe == 0 && KB_KeyPressed(sc_LeftControl) && KB_KeyPressed(sc_LeftAlt) && KB_KeyPressed(sc_Delete)) ||
+        (qe == 0 && KB_KeyPressed(sc_LeftAlt) && KB_KeyPressed(sc_F4)))
     {
         qe = 1;
         gameexit("Quick Exit.");
@@ -3309,7 +3310,7 @@
                 else
                     setviewtotile(MAXTILES-2,320L>>(1-ud.detail),320L>>(1-ud.detail));
                 if ((tang&1023) == 512)
-                {     //Block off unscreen section of 90� tilted screen
+                {     //Block off unscreen section of 90ø tilted screen
                     j = ((320-60)>>(1-ud.detail));
                     for(i=(60>>(1-ud.detail))-1;i>=0;i--)
                     {