diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1995-05-29 13:46:42 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1995-05-29 13:46:42 +0000 |
commit | 444bcd3c2ed803274c8deafa2c3fa03f8a394653 (patch) | |
tree | 297f74782436a0f973b6b89d60c10f399af9a135 /games/xmine/files | |
parent | Remove comment about not being able to undefine a variable, as we *can* (diff) |
This commit was manufactured by cvs2svn to create tagrelease/2.0.5
'RELENG_2_0_5_RELEASE'.
Notes
Notes:
svn path=/head/; revision=1803
svn path=/tags/RELENG_2_0_5_RELEASE/; revision=1807; tag=release/2.0.5
Diffstat (limited to 'games/xmine/files')
-rw-r--r-- | games/xmine/files/patch-aa | 57 | ||||
-rw-r--r-- | games/xmine/files/patch-ab | 15 |
2 files changed, 0 insertions, 72 deletions
diff --git a/games/xmine/files/patch-aa b/games/xmine/files/patch-aa deleted file mode 100644 index f159ea37ef58..000000000000 --- a/games/xmine/files/patch-aa +++ /dev/null @@ -1,57 +0,0 @@ -*** xmine.c~ Sat Apr 2 00:20:15 1994 ---- xmine.c Thu Jun 30 10:20:34 1994 -*************** -*** 78,83 **** ---- 78,90 ---- - #define GSPACEX 16 - #define GSPACEY 16 - -+ /* some systems might be better off with using "random()" instead of "rand()"*/ -+ #if defined __FreeBSD__ -+ # define USE_RANDOM 1 -+ #else -+ # define USE_RANDOM 0 -+ #endif -+ - #define SCORE_FILE "~/.xmine_scores" - #define TOPMARGIN 60 - #define BOTMARGIN 12 -*************** -*** 911,922 **** ---- 918,938 ---- - { - int i, x, y, xd, yd, tries; - -+ #if USE_RANDOM -+ srandom((unsigned) time(0)); -+ #else - srand((unsigned int) time(0)); -+ #endif - for (i = 0; i != mine_count; i++) { - tries = 1000; - do { -+ #if USE_RANDOM -+ x = (random()>>1) % gsizex; -+ y = (random()>>1) % gsizey; -+ #else - x = (rand()>>1) % gsizex; - y = (rand()>>1) % gsizey; -+ #endif - tries--; - } while (tries && (grid[x][y] || - !(x < fx-1 || x > fx+1 || y < fy-1 -*** Imakefile~ Mon Dec 26 12:42:58 1994 ---- Imakefile Mon Dec 26 12:49:44 1994 -*************** -*** 20,25 **** ---- 20,29 ---- - # define WarnLevel - #endif - -+ # for FreeBSD package: do not compress man page, otherwise gzip will -+ # complain when building the package target -+ COMPRESSMANCMD = echo -+ - DEPLIBS = XawClientDepLibs - LOCAL_LIBRARIES = XawClientLibs - EXTRA_DEFINES = WarnLevel Xaw3dDefs diff --git a/games/xmine/files/patch-ab b/games/xmine/files/patch-ab deleted file mode 100644 index 457ec6e67d37..000000000000 --- a/games/xmine/files/patch-ab +++ /dev/null @@ -1,15 +0,0 @@ -*** Imakefile~ Mon Dec 26 12:50:19 1994 ---- Imakefile Mon Dec 26 12:53:45 1994 -*************** -*** 1,5 **** - /* if you have Xaw3d installed, you might wish to use this: */ -! #define UseXaw3d 0 - - /* for debugging: */ - /* CDEBUGFLAGS = -g -O2 */ ---- 1,5 ---- - /* if you have Xaw3d installed, you might wish to use this: */ -! #define UseXaw3d YES - - /* for debugging: */ - /* CDEBUGFLAGS = -g -O2 */ |