Skip to content

Commit d5184bb

Browse files
committed
Exclude PlanetWars from MM abort-on-unready logic, fix #3027
PW battles have IsMatchMakerBattle=true but should not be aborted when players fail to place start positions. PW games should proceed with whoever is present.
1 parent 9412493 commit d5184bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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);

0 commit comments

Comments
 (0)