File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace ZkLobbyServer
1313{
1414 public partial class MatchMaker
1515 {
16- private const int TimerSeconds = 25 ;
16+ public const int TimerSeconds = 25 ;
1717 private const int MapModChangePauseSeconds = 30 ;
1818
1919 private int BanSecondsIncrease => DynamicConfig . Instance . MmBanSecondsIncrease ;
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ namespace ZkLobbyServer
2424 public class ServerBattle : Battle
2525 {
2626 public const int PollTimeout = 60 ;
27- public const int DiscussionTime = 25 ;
2827 public const int MapVoteTime = 25 ;
2928 public const int NumberOfMapChoices = 4 ;
3029 public const int MinimumAutostartPlayers = 6 ;
@@ -36,6 +35,8 @@ public class ServerBattle : Battle
3635 private static object pickPortLock = new object ( ) ;
3736 private static string hostingIp ;
3837
38+
39+ public int DiscussionTime = 25 ;
3940 public readonly List < string > toNotify = new List < string > ( ) ;
4041 public Resource HostedMap ;
4142
@@ -877,6 +878,11 @@ protected virtual async Task OnDedicatedExited(SpringBattleContext springBattleC
877878 var teamsQueues = server . MatchMaker . PossibleQueues . Where ( x => x . Mode == AutohostMode . Teams ) . ToList ( ) ;
878879 var availableUsers = Users . Values . Where ( x => ! x . LobbyUser . IsAway ) . Select ( x => server . ConnectedUsers [ x . Name ] ) . ToList ( ) ;
879880 await server . MatchMaker . MassJoin ( availableUsers , teamsQueues ) ;
881+ DiscussionTime = MatchMaker . TimerSeconds + 2 ;
882+ }
883+ else
884+ {
885+ DiscussionTime = 5 ;
880886 }
881887
882888
You can’t perform that action at this time.
0 commit comments