kaka.farm

Unnamed repository; edit this file 'description' to name the repository.
git clone https://kaka.farm/~git/kaka.farm
Log | Files | Refs | README

commit 48f7fbbdee3c05b88a2daf34d78c661dcac97fee
parent 97f77f7428493fb8bac74f98bf55bb983791cdff
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date:   Mon,  6 Jul 2020 20:02:28 +0300

Fix number of steps restart bug.

Diffstat:
Mhtml/sokoban.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/html/sokoban.js b/html/sokoban.js @@ -192,6 +192,7 @@ let sokoban = (function() { function action_restart_level(game) { + game.number_of_steps = 0; game.undo_stack = []; game.level_state = read_level_text(levels[game.current_level_number]); };