chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c85fd3
)
Ahem. The region density at which things start to get hairy is 2/3
author
Simon Tatham
<anakin@pobox.com>
Mon, 29 Aug 2005 09:05:35 +0000
(09:05 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Mon, 29 Aug 2005 09:05:35 +0000
(09:05 +0000)
of the grid area, not 3/2!
[originally from svn r6235]
map.c
patch
|
blob
|
history
diff --git
a/map.c
b/map.c
index 3697233173bafcd321788150c386db198ead265f..0f5920c64c9ad115981c5e71a3cdecdf9e502427 100644
(file)
--- a/
map.c
+++ b/
map.c
@@
-1248,7
+1248,7
@@
static char *new_game_desc(game_params *params, random_state *rs,
/*
* Drop minimum difficulty if necessary.
*/
- if (mindiff > 0 && (n < 9 || n >
3*wh/2
)) {
+ if (mindiff > 0 && (n < 9 || n >
2*wh/3
)) {
if (tries-- <= 0)
mindiff = 0; /* give up and go for Easy */
}