summaryrefslogtreecommitdiff
path: root/games/jetpack/patches/patch-ai
blob: 7a24696e6a793273c8530e80a0e8d2b1e988fec6 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-ai,v 1.1 1998/08/23 11:24:54 garbled Exp $
*** events.c~	Mon Nov  8 15:16:07 1993
--- events.c	Sun Feb 12 17:34:55 1995
***************
*** 4,9 ****
--- 4,11 ----
  #include "copyright.h"
  #include "defs.h"
  
+ int usecdelay = USECDELAY;
+ 
  /*	event_filter handles game events
  */
  int	event_filter()
***************
*** 86,91 ****
--- 88,100 ----
  	
  	XLookupString(event, &buf, 1, &key, &i);
  	switch(key) {
+                 case 't':
+                 case 'T':
+                        if (usecdelay == USECDELAY)
+                            usecdelay = USECDELAY/1.5;
+                        else
+                            usecdelay = USECDELAY;
+                        break;
  		case XK_KP_4:
  		case 'a':
  		case 'A':
***************
*** 115,120 ****
--- 124,130 ----
  			}
  			break;
  		case 'Q':
+ 	        case 'q':
  			if(dead) break;
  			dead = 1;
  			deadtimer = 50;
***************
*** 124,129 ****
--- 134,140 ----
  			dumb_message(MQUIT);
  			break;
  		case 'p':
+ 		case 'P':
  			if(paused) {
  				paused = 0;
  				bigmessagetime = 0;