Skip to content

Commit 2beb0fb

Browse files
authored
Merge pull request #3028 from ZeroK-RTS/master
update stable
2 parents 2861665 + 4b8310e commit 2beb0fb

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

ZkData/Ef/WHR/RatingSystems.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ public static void Init()
3737
{
3838
int battles = 0;
3939
data.Database.CommandTimeout = 240;
40-
for (int month = 10*12; month > 0; month--)
40+
for (int month = 5*12; month > 0; month--)
4141
{
4242
DateTime minStartTime = DateTime.Now.AddMonths(-month);
4343
DateTime maxStartTime = DateTime.Now.AddMonths(-month + 1);
4444
foreach (SpringBattle b in data.SpringBattles
4545
.Where(x => x.StartTime > minStartTime && x.StartTime < maxStartTime)
46-
.Include(x => x.ResourceByMapResourceID)
4746
.Include(x => x.SpringBattlePlayers)
48-
.Include(x => x.SpringBattleBots)
4947
.AsNoTracking()
5048
.OrderBy(x => x.StartTime))
5149
{

ZkLobbyServer/ServerBattle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ private void spring_BattleStarted(object sender, SpringBattleContext e)
13411341
try
13421342
{
13431343
StopVote();
1344-
if (IsMatchMakerBattle && e.PlayersUnreadyOnStart.Count > 0 && e.IsTimeoutForceStarted)
1344+
if (IsMatchMakerBattle && Mode != AutohostMode.Planetwars && e.PlayersUnreadyOnStart.Count > 0 && e.IsTimeoutForceStarted)
13451345
{
13461346
string message = string.Format("Players {0} did not choose a start position. Game will be aborted.", e.PlayersUnreadyOnStart.StringJoin());
13471347
spring.SayGame(message);

ZkLobbyServer/SpringieInterface/PlanetWarsMatchMaker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private async Task JoinPlanetAttack(int targetPlanetId, string userName)
332332

333333
await conus.SendCommand(new PwJoinPlanetSuccess() { PlanetID = targetPlanetId });
334334

335-
if (attackOption.Attackers.Count == attackOption.TeamSize) await StartChallenge(attackOption);
335+
if (attackOption.Attackers.Count >= attackOption.TeamSize) await StartChallenge(attackOption);
336336
else await UpdateLobby();
337337
}
338338
}
@@ -361,7 +361,7 @@ private async Task JoinPlanetDefense(int targetPlanetID, string userName)
361361

362362
await conus.SendCommand(new PwJoinPlanetSuccess() { PlanetID = targetPlanetID });
363363

364-
if (Challenge.Defenders.Count == Challenge.TeamSize) await AcceptChallenge();
364+
if (Challenge.Defenders.Count >= Challenge.TeamSize) await AcceptChallenge();
365365
else await UpdateLobby();
366366
}
367367
}

0 commit comments

Comments
 (0)