Code cleanup (#195)
This commit is contained in:
parent
b476bcfd24
commit
0926b5abaa
86 changed files with 740 additions and 1635 deletions
|
|
@ -254,12 +254,7 @@ namespace Server.Engines.Doom
|
|||
if (playerCount == 0 && Region != null)
|
||||
playerCount = Region.GetPlayerCount();
|
||||
|
||||
int count = (playerCount + PlayersPerSpawn - 1) / PlayersPerSpawn;
|
||||
|
||||
if (count < 1)
|
||||
count = 1;
|
||||
|
||||
return count;
|
||||
return Math.Max((playerCount + PlayersPerSpawn - 1) / PlayersPerSpawn, 1);
|
||||
}
|
||||
|
||||
public virtual void ClearCreatures()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue