summaryrefslogtreecommitdiff
path: root/games/seabattle/files/patch-ad
blob: 9af20bc7223f796f9e3d582425465d00cae9dd9e (plain) (blame)
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
*** binp.c	Tue May 13 17:51:00 1997
--- /home/andy/tmp/wrk/binp.c	Mon Jun 30 14:41:38 1997
***************
*** 129,143 ****
                                             /* Incomplete as of yet */
     if (which_one==1) 
        if (sound_device) 
!          if(rand()%2) system("cat hit1.au > /dev/audio ");
!          else system("cat hit2.au > /dev/audio ");
        else beep();
     if (which_one==2)
        if (sound_device)
!          if(rand()%2) system("cat miss1.au > /dev/audio ");
!          else system("cat miss2.au > /dev/audio ");
     if (which_one==3) 
!       if (sound_device) system("cat sunkit.au > /dev/audio ");
        else beep();
  }
  
--- 129,143 ----
                                             /* Incomplete as of yet */
     if (which_one==1) 
        if (sound_device) 
!          if(rand()%2) system("cat " PREFIX "/share/seabattle/hit1.au > /dev/audio ");
!          else system("cat " PREFIX "/share/seabattle/hit2.au > /dev/audio ");
        else beep();
     if (which_one==2)
        if (sound_device)
!          if(rand()%2) system("cat " PREFIX "/share/seabattle/miss1.au > /dev/audio ");
!          else system("cat " PREFIX "/share/seabattle/miss2.au > /dev/audio ");
     if (which_one==3) 
!       if (sound_device) system("cat " PREFIX "/share/seabattle/sunkit.au > /dev/audio ");
        else beep();
  }