Bugfix: right score/wave_score/bonus

This commit is contained in:
Fabrice Ecaille
2013-10-17 18:13:29 +02:00
parent bf14aad612
commit 038e3d6249

View File

@@ -58,12 +58,13 @@ Game = {
levelComplete : function() {
"use strict";
Game.running = false;
var bonus = Math.round(((Game.shots.total - Game.shots.lost) / Game.shots.total) * Game.wave.score);
var bonus = Math.round(((Game.shots.total - Game.shots.lost) / Game.shots.total) * Game.wave.score),
wave_score = Game.wave.score;
Game.addToScore(bonus);
displayModal( {
bonus: bonus,
wave_score: Game.wave.score,
wave_score: wave_score,
score: Game.score,
});