Update epic kill streak in post battle.

This commit is contained in:
Steve 2016-04-28 17:20:34 +01:00
parent 099152b820
commit dca34036a7
2 changed files with 2 additions and 4 deletions

View File

@ -384,6 +384,8 @@ static void postBattle(void)
} }
} }
game.stats[STAT_EPIC_KILL_STREAK] = MAX(game.stats[STAT_EPIC_KILL_STREAK], battle.stats[STAT_EPIC_KILL_STREAK]);
updateAccuracyStats(game.stats); updateAccuracyStats(game.stats);
if (!game.currentMission->challengeData.isChallenge) if (!game.currentMission->challengeData.isChallenge)

View File

@ -84,10 +84,6 @@ void initPlayer(void)
battle.boostTimer = BOOST_RECHARGE_TIME; battle.boostTimer = BOOST_RECHARGE_TIME;
battle.ecmTimer = ECM_RECHARGE_TIME; battle.ecmTimer = ECM_RECHARGE_TIME;
game.stats[STAT_EPIC_KILL_STREAK] = MAX(game.stats[STAT_EPIC_KILL_STREAK], battle.stats[STAT_EPIC_KILL_STREAK]);
battle.stats[STAT_EPIC_KILL_STREAK] = 0;
player->flags |= EF_NO_HEALTH_BAR; player->flags |= EF_NO_HEALTH_BAR;
} }