chiark / gitweb /
Various fixes and cleanups suggested by Ben Hutchings:
authorSimon Tatham <anakin@pobox.com>
Fri, 29 Jul 2005 12:07:10 +0000 (12:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 29 Jul 2005 12:07:10 +0000 (12:07 +0000)
commit14ad9d832eb8970770a893a65caa095829d5b9b3
tree8994d1c23ef0b04778b4203a3996adf3a872f40e
parentb0adb79178a5a00e843c6ac27ce0e1bcd2bec9d8
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]
blackbox.c