View | Details | Raw Unified | Return to bug 171792
Collapse All | Expand All

(-)files/patch-mille.c (+27 lines)
Lines 21-26 Link Here
21
 
21
 
22
 main(ac, av)
22
 main(ac, av)
23
 reg int		ac;
23
 reg int		ac;
24
@@ -49,8 +50,6 @@
25
 		/* NOTREACHED */
26
 	}
27
 	setbuf(stdout, _sobuf);
28
-	Play = PLAYER;
29
-	init_ui ();
30
 # ifndef PROF
31
 #ifdef sun
32
 	srandom(getpid());
33
@@ -60,6 +59,8 @@
34
 # else
35
 	srand(0);
36
 # endif
37
+	Play = random()&01 ? COMP : PLAYER;
38
+	init_ui ();
39
 	signal(SIGINT, rub);
40
 	for (;;) {
41
 		if (!restore || (Player[PLAYER].total >= 5000
42
@@ -73,7 +74,7 @@
43
 		}
44
 		do {
45
 			if (!restore)
46
-				Handstart = Play = other(Handstart);
47
+				Handstart = other(Handstart);
48
 			if (!restore || On_exit) {
49
 				shuffle();
50
 				init();
24
@@ -123,9 +124,9 @@
51
@@ -123,9 +124,9 @@
25
  *	Routine to trap rubouts, and make sure they really want to
52
  *	Routine to trap rubouts, and make sure they really want to
26
  * quit.
53
  * quit.

Return to bug 171792