Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvees committed Jul 13, 2018
1 parent 86b1223 commit e254e61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/MagCore.Core/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ private void ProcessVictory()
//win
_state = GameState.Done;
}

var ts = DateTime.Now - CreateTime;
if (ts.TotalHours >= 5)
{
_state = GameState.Done;
}

}

private Dictionary<int, Player> DefeatPlayers = new Dictionary<int, Player>();
Expand Down

0 comments on commit e254e61

Please sign in to comment.