From c9536ae9380a0b34ffbb70b7c0a1f70862253e15 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 24 May 2016 16:49:14 +0100 Subject: [PATCH] Reset epic kill streak when switching fighters. --- src/battle/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle/player.c b/src/battle/player.c index bf96d97..04c2ff7 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -87,6 +87,10 @@ void initPlayer(void) battle.ecmTimer = ECM_RECHARGE_TIME; player->flags |= EF_NO_HEALTH_BAR; + + 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; } static void setPilotName(void)