Package: gravitywars / 1.102-34

010_escape_exits_title.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: gravitywars-1.102/introutro.c
===================================================================
--- gravitywars-1.102.orig/introutro.c	1996-08-25 09:48:22.000000000 +0200
+++ gravitywars-1.102/introutro.c	2006-05-16 06:33:59.000000000 +0200
@@ -141,6 +141,7 @@
       p1[pal_m]=((((long)pal[pal_m])*pal_n)>>10);
     vga_waitretrace();
     gl_setpalette(p1);
+    if(keyboard_update()) goto exitfade;
   }
   gl_setpalette(pal);
 
@@ -199,9 +200,10 @@
   }
  exitfade:
 
-  if (*(scans+SCANCODE_ESCAPE))
+  if (*(scans+SCANCODE_ESCAPE)) {
     escape=TRUE;
-    
+    return;
+  }
 
   for(pal_n=1024; pal_n>=0; pal_n-=16) {
     for (pal_m=0; pal_m<=767; pal_m++)