FreeBSD Bugzilla – Attachment 127911 Details for
Bug 171792
patch: allow games/xmille to select starting player randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 816 bytes, created by
david
on 2012-09-19 21:40:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
david
Created:
2012-09-19 21:40:04 UTC
Size:
816 bytes
patch
obsolete
>--- files/patch-mille.c.orig 2012-07-22 04:58:35.000000000 -0700 >+++ files/patch-mille.c 2012-09-19 13:12:55.000000000 -0700 >@@ -21,6 +21,33 @@ > > main(ac, av) > reg int ac; >+@@ -49,8 +50,6 @@ >+ /* NOTREACHED */ >+ } >+ setbuf(stdout, _sobuf); >+- Play = PLAYER; >+- init_ui (); >+ # ifndef PROF >+ #ifdef sun >+ srandom(getpid()); >+@@ -60,6 +59,8 @@ >+ # else >+ srand(0); >+ # endif >++ Play = random()&01 ? COMP : PLAYER; >++ init_ui (); >+ signal(SIGINT, rub); >+ for (;;) { >+ if (!restore || (Player[PLAYER].total >= 5000 >+@@ -73,7 +74,7 @@ >+ } >+ do { >+ if (!restore) >+- Handstart = Play = other(Handstart); >++ Handstart = other(Handstart); >+ if (!restore || On_exit) { >+ shuffle(); >+ init(); > @@ -123,9 +124,9 @@ > * Routine to trap rubouts, and make sure they really want to > * quit.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 171792
: 127911