File: misc.c

package info (click to toggle)
gravitywars 1.102-34
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,468 kB
  • ctags: 553
  • sloc: ansic: 3,938; makefile: 52; sh: 52
file content (26 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (10)
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
/* GravityWars 1.1,  (C) Sami Niemi -95 */

/* Wait Any Key */
void waitanykey() {

  while(keyboard_update()) 
    vga_waitretrace();
 
  while(!keyboard_update()) 
    vga_waitretrace();

}

/*------------------------------------------------------------------ doPanic */
/* It also panics if you push a mouse button, in case svgalib crashes.. */

void doPanic() {
  printf("------------------------------\n"
	 "- PANICING!!!!!!! WHOAAAAA!! -\n"
	 "------------------------------\n");
  keyboard_close();
  mouse_close();
  exit(1);
}