]> git.cworth.org Git - kub/commit
Fix tile group validation functions
authorKevin Worth <kworth@kworth-laptop.(none)>
Thu, 7 May 2009 15:06:03 +0000 (11:06 -0400)
committerKevin Worth <kworth@kworth-laptop.(none)>
Thu, 7 May 2009 15:06:03 +0000 (11:06 -0400)
commit5e61d8a5fc190e3064a225fec01505b7acf4d6b4
tree2d1dce347b0883eca4c31650165903503106b4ad
parent388d3ca2a4b0f2d2ff5c0f06f5fd32241475c4dd
Fix tile group validation functions

tile_group_is_set() has been tested
and appears to be working. No major changes
made here.

tile_group_is_run_one() has been tested and
appears to be working. This version has been
significantly revamped. The concept for the previous
version was "slick" but was flawed. One failure came
from testing a 3 tile group containing a yellow tile.
The yellow tile tried to increment index 3, but the max
index was 2.

no changes made to tile_group_is_run_two() which
has not been tested. It may not be needed unless
it can be shown to be "better" than _is_run_one()
kub.c