Skip to content

Commit

Permalink
don't record games that never started
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinFreund committed Jan 20, 2021
1 parent f149780 commit 2959b27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZkLobbyServer/SpringieInterface/BattleResultHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public static bool SubmitSpringBattleResult(SpringBattleContext result, ZkLobbyS
var ret = new BattleDebriefing();
try
{
if (string.IsNullOrEmpty(result.ReplayName))
{
ret.Message = "Game didn't start";
return false;
}

bool isValidGame = true;
if (!result.GameEndedOk)
{
Expand Down

0 comments on commit 2959b27

Please sign in to comment.