simon-svn: puzzles: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sun Sep 9 19:40:12 BST 2012
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 9657
Date: 2012-09-09 19:40:12 +0100 (Sun, 09 Sep 2012)
Log message (12 lines):
New rule: interpret_move() is passed a pointer to the game_drawstate
basically just so that it can divide mouse coordinates by the tile
size, but is definitely not expected to _write_ to it, and it hadn't
previously occurred to me that anyone might try. Therefore,
interpret_move() now gets a pointer to a _const_ game_drawstate
instead of a writable one.
All existing puzzles cope fine with this API change (as long as the
new const qualifier is also added to a couple of subfunctions to which
interpret_move delegates work), except for the just-committed Undead,
which somehow had ds->ascii and ui->ascii the wrong way round but is
otherwise unproblematic.
Modified files:
U puzzles/blackbox.c
U puzzles/bridges.c
U puzzles/cube.c
U puzzles/devel.but
U puzzles/dominosa.c
U puzzles/fifteen.c
U puzzles/filling.c
U puzzles/flip.c
U puzzles/galaxies.c
U puzzles/guess.c
U puzzles/inertia.c
U puzzles/keen.c
U puzzles/lightup.c
U puzzles/loopy.c
U puzzles/magnets.c
U puzzles/map.c
U puzzles/mines.c
U puzzles/net.c
U puzzles/netslide.c
U puzzles/nullgame.c
U puzzles/pattern.c
U puzzles/pearl.c
U puzzles/pegs.c
U puzzles/puzzles.h
U puzzles/range.c
U puzzles/rect.c
U puzzles/samegame.c
U puzzles/signpost.c
U puzzles/singles.c
U puzzles/sixteen.c
U puzzles/slant.c
U puzzles/solo.c
U puzzles/tents.c
U puzzles/towers.c
U puzzles/twiddle.c
U puzzles/undead.c
U puzzles/unequal.c
U puzzles/untangle.c
Links:
http://svn.tartarus.org/sgt/?rev=9657&view=rev
http://svn.tartarus.org/sgt/puzzles/blackbox.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/bridges.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/cube.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/devel.but?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/dominosa.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/fifteen.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/filling.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/flip.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/galaxies.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/guess.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/inertia.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/keen.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/lightup.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/loopy.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/magnets.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/map.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/mines.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/net.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/netslide.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/nullgame.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/pattern.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/pearl.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/pegs.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/puzzles.h?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/range.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/rect.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/samegame.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/signpost.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/singles.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/sixteen.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/slant.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/solo.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/tents.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/towers.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/twiddle.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/undead.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/unequal.c?rev=9657&r1=9656&r2=9657
http://svn.tartarus.org/sgt/puzzles/untangle.c?rev=9657&r1=9656&r2=9657
More information about the tartarus-commits
mailing list