



Maybe I'm being really picky but every game I've seen that has been compiled
with Inform sets the initial moves to one. Now I may be missing something
but I am under the impression that this should be zero. The "bug" (or maybe just general annoyance) is quite easily fixed by finding
the line in Parserm.h: and changing it to: There is a further minor correction that must be made to Parserm.h so that
the game accepts that the move counter starts at zero. On the first turn the
library is set to respond [You can't "undo" what hasn't been done!] to an
attempt to "undo". If the first turn is numbered anything other than 1 the
game will respond [Your interpreter does not provide "undo". Sorry!] even
if it does, and then when turn 1 comes around it will refuse to undo the
previous turn. This can be corrected by changing part of Parserm.h which may look like
this: or if you have made Torbjörn Andersson's "undo" correction like this: The second line should be changed to: Then the game will disallow "undo" properly on turn 0 and allow it on turn 1.
About Patches
Issue L61011
Move count starts at 1
Submitted by: Matthew Auger
Appeared in: Library 6/7 or before
Fixed in: Library 6/11
Problem
Solution
Global turns = 1;
Global turns = 0;
if ((w == UNDO1__WD or UNDO2__WD or UNDO3__WD) && (parse->1==1))
{ if (turns==1)
if ((w == UNDO1__WD or UNDO2__WD or UNDO3__WD) && (nw==1))
{ if (turns==1)
{ if (turns==0)
Last updated 2 May 2008. The librarian in charge of this page is Roger Firth. Please email any comments, suggestions or corrections to roger@firthworks.com.