diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-07-29 12:07:10 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-07-29 12:07:10 +0000 |
| commit | 14ad9d832eb8970770a893a65caa095829d5b9b3 (patch) | |
| tree | 8994d1c23ef0b04778b4203a3996adf3a872f40e /pattern.c | |
| parent | b0adb79178a5a00e843c6ac27ce0e1bcd2bec9d8 (diff) | |
| download | puzzles-14ad9d832eb8970770a893a65caa095829d5b9b3.zip puzzles-14ad9d832eb8970770a893a65caa095829d5b9b3.tar.gz puzzles-14ad9d832eb8970770a893a65caa095829d5b9b3.tar.bz2 puzzles-14ad9d832eb8970770a893a65caa095829d5b9b3.tar.xz | |
Various fixes and cleanups suggested by Ben Hutchings:
- clarified wording of messages in validate_params(), including in
particular a correction from `< 255' to `<= 255'
- fixed random_upto() in game generation which caused the maximum
number of balls never to be used when there was uncertainty
- fixed widespread miscalculation of rectangular-array indices
(multiplication by h instead of w, which would have broken
non-square grids rather profoundly)
- corrected an ANSI namespace violation
- removed real functionality from the inside of assert()
statements, so that the game should still work when compiled
-DNDEBUG
- couple of unnecessary linear-time loops removed.
[originally from svn r6149]
Diffstat (limited to 'pattern.c')
0 files changed, 0 insertions, 0 deletions