Re: AisleRiot: two new games
- From: Callum McKenzie <callum physics otago ac nz>
- To: games-list gnome org
- Subject: Re: AisleRiot: two new games
- Date: Thu, 08 Sep 2005 16:37:42 +1200
Sorry, I forgot to say that I have fixed this (in CVS HEAD).
The correct function is:
; Restore all the state variables for a game
(define restore-variables
(lambda (names values)
(or (equal? '() names)
(begin
(eval-1 (list 'set! (car names) (list 'quote (car values))))
(restore-variables (cdr names) (cdr values))
))))
Note the extra quote at the end of the eval statement.
It makes undo/redo with gaps.scm work for me.
- Callum
PS: I haven't gaps to CVS yet, I have been trying to get my private
branch stable first.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]