fix endless wave end bug

This commit is contained in:
GenZmeY 2021-03-27 18:23:50 +03:00
parent d214a99cf1
commit 6a8478b575

View File

@ -112,6 +112,30 @@ function UpdateGameSettings()
}
}
function WaveEnded(EWaveEndCondition WinCondition)
{
if(!bWaveStarted && !MyKFGRI.bTraderIsOpen)
return;
WaveMax = WaveNum + 2;
MyKFGRI.WaveMax = WaveMax;
if(KFGameReplicationInfo_Endless(GameReplicationInfo).CurrentWeeklyMode != INDEX_NONE)
{
EndOutbreakRound();
}
bUseSpecialWave = false;
KFGameReplicationInfo_Endless(GameReplicationInfo).CurrentWeeklyMode = INDEX_NONE;
KFGameReplicationInfo_Endless(GameReplicationInfo).CurrentSpecialMode = INDEX_NONE;
HellOnEarthPlusRoundIncrement();
Super(KFGameInfo_Survival).WaveEnded(WinCondition);
TrySetNextWaveSpecial();
}
defaultproperties
{
bIsCustomGame=False