simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Fri Apr 5 16:49:20 BST 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9805
Date:           2013-04-05 16:49:20 +0100 (Fri, 05 Apr 2013)

Log message (11 lines):
I've just realised that the JS puzzles' permalinks were not updating
when the user pressed 'n' for a new game, because all the front end
knows is that it passed a keystroke to the puzzle, and it has no way
of hearing back that a particular keypress resulted in a game id
change.

To fix this, I've renamed midend_request_desc_changes to
midend_request_id_changes and expanded its remit to cover _any_ change
to the game ids. So now that callback in the Emscripten front end is
the only place from which update_permalinks is called (apart from
initialising them at setup time), and that should handle everything.

Modified files:
U   puzzles/devel.but
U   puzzles/emcc.c
U   puzzles/midend.c
U   puzzles/puzzles.h

Links:
http://svn.tartarus.org/sgt/?rev=9805&view=rev
http://svn.tartarus.org/sgt/puzzles/devel.but?rev=9805&r1=9804&r2=9805
http://svn.tartarus.org/sgt/puzzles/emcc.c?rev=9805&r1=9804&r2=9805
http://svn.tartarus.org/sgt/puzzles/midend.c?rev=9805&r1=9804&r2=9805
http://svn.tartarus.org/sgt/puzzles/puzzles.h?rev=9805&r1=9804&r2=9805



More information about the tartarus-commits mailing list