Skip to content

Commit e254e61

Browse files
committed
1.0.6
1 parent 86b1223 commit e254e61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/server/MagCore.Core/Game.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ private void ProcessVictory()
162162
//win
163163
_state = GameState.Done;
164164
}
165+
166+
var ts = DateTime.Now - CreateTime;
167+
if (ts.TotalHours >= 5)
168+
{
169+
_state = GameState.Done;
170+
}
171+
165172
}
166173

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

0 commit comments

Comments
 (0)