shithub: duke3d

Download patch

ref: 6086876239945c2b232b2af305c6dbee2a34b03c
parent: f3cd98c2e82756745a095234e75547e776adf676
parent: dc86e19872966640fe3d87f016181f2a705969e9
author: Fabien <fabien.sanglard@gmail.com>
date: Tue Apr 28 15:05:23 EDT 2015

Merge pull request #26 from darealshinji/patch-4

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--)
                     {