Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
ntm5 authored Jul 10, 2024
1 parent f71efab commit a1af31e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/TTT.Round/RoundBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void TickWaiting()
if (_round.GraceTime() != 0) return;


if (Utilities.GetPlayers().Where(player => player is { IsValid: true, PawnIsAlive: true }).ToList().Count <= 0)
if (Utilities.GetPlayers().Where(player => player is { IsValid: true, PawnIsAlive: true }).ToList().Count <= 2)
{
Server.PrintToChatAll(StringUtils.FormatTTT("Not enough players to start the round. Round has been ended."));
_roundStatus = RoundStatus.Paused;
Expand Down Expand Up @@ -101,7 +101,6 @@ public void ForceEnd()

private void EndRound()
{
return;
if (_roundStatus == RoundStatus.Started && Utilities.GetPlayers().Count(player => player.PawnIsAlive) == 1)
{
ForceEnd();
Expand Down

0 comments on commit a1af31e

Please sign in to comment.