do not respawn inactive players
This commit is contained in:
parent
c73240a1c5
commit
6c9775fbfe
11 changed files with 91 additions and 48 deletions
|
@ -35,7 +35,7 @@ internal sealed class TankSpawnQueue(
|
|||
return false; // no one on queue
|
||||
|
||||
var now = DateTime.Now;
|
||||
if (player.LastInput + _idleTimeout < now)
|
||||
if (player.OpenConnections < 1 || player.LastInput + _idleTimeout < now)
|
||||
{
|
||||
// player idle
|
||||
_queue.Enqueue(player);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue