From 0534ab04a249e0c0c9f05c4c561115e848ccdc0d Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 14 Jul 2011 10:31:23 +0200 Subject: [PATCH] refactoring gone wrong (pulled too early) --- star.js/js/star.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/star.js/js/star.js b/star.js/js/star.js index cab192c..17165d1 100644 --- a/star.js/js/star.js +++ b/star.js/js/star.js @@ -266,7 +266,7 @@ function initialize_a_star( dom_container ) { if ( won_or_not( ) ) { if ( state.level < levels.length - 1 ) { - state = load_level( levels, state.level + 1 ); + state = load_level( state.level + 1 ); display_level( ); } else { @@ -295,18 +295,18 @@ function initialize_a_star( dom_container ) { break; case 78: // n if ( state.level < levels.length - 1 ) { - state = load_level( levels, state.level + 1 ); + state = load_level( state.level + 1 ); display_level( ); } break; case 80: // p if ( state.level > 0 ) { - state = load_level( levels, state.level - 1 ); + state = load_level( state.level - 1 ); display_level( ); } break; case 82: // r - state = load_level( levels, state.level ); + state = load_level( state.level ); display_level( ); break; default: @@ -315,7 +315,7 @@ function initialize_a_star( dom_container ) { if ( won_or_not( ) ) { if ( state.level < levels.length - 1 ) { - state = load_level( levels, state.level + 1 ); + state = load_level( state.level + 1 ); display_level( ); } else {