diff options
author | bad <bad@pkgsrc.org> | 1999-12-29 16:18:53 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 1999-12-29 16:18:53 +0000 |
commit | 7b58c75c3e85838136ffb184d71de9efba0c67a4 (patch) | |
tree | a665d0f8feab88f8cbd5841f9c3dd04fa9995617 /games/xdemineur | |
parent | 4f7cc1bad9aeadc0a60f0cec3b0f40180d415aef (diff) | |
download | pkgsrc-7b58c75c3e85838136ffb184d71de9efba0c67a4.tar.gz |
Don't forget the "-m mines" setting after the first game.
Diffstat (limited to 'games/xdemineur')
-rw-r--r-- | games/xdemineur/patches/patch-aa | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/games/xdemineur/patches/patch-aa b/games/xdemineur/patches/patch-aa new file mode 100644 index 00000000000..8928bd7ff82 --- /dev/null +++ b/games/xdemineur/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1 1999/12/29 16:18:53 bad Exp $ + +--- demineur.c.orig Thu Jul 29 23:25:30 1999 ++++ demineur.c Sun Nov 14 23:28:02 1999 +@@ -71,20 +71,18 @@ + + if ( option_mines != 0 ) + { +- if ( option_mines >= board.rows * board.columns ) +- { +- printf ( "Too many mines, using default number.\n" ) ; +- mines = board.mines = board.rows * board.columns / 4.8 ; +- } +- else +- { +- mines = board.mines = option_mines ; +- } ++ board.mines = option_mines; /* override default */ + } +- else ++ if ( board.mines >= board.rows * board.columns ) + { +- mines = board.mines = board.rows * board.columns / 4.8 ; ++ printf ( "Too many mines, using default number.\n" ) ; ++ board.mines = 0; + } ++ if ( board.mines == 0 ) /* if not set yet, use default */ ++ { ++ board.mines = board.rows * board.columns / 4.8 ; ++ } ++ mines = board.mines; + + elapsed = 0 ; + state = PLAYING ; |