Skip to content

Commit 3fa0f2f

Browse files
committed
slight adjustment to no headroom penalty
1 parent b5f244b commit 3fa0f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2_quickplay/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,13 +524,13 @@ def score_server(humans: int, max_players: int) -> float:
524524

525525
real_max_players = max_players
526526

527-
# server is already full, we can't go over
527+
# we're going over max players, so can't join
528528
if new_total_players > real_max_players:
529529
return -100.0
530530

531531
# if we don't have enough headroom, then penalize
532532
if new_total_players > real_max_players - SERVER_HEADROOM:
533-
return -0.3
533+
return -0.25
534534

535535
# penalize a completely empty server
536536
if humans == 0:

0 commit comments

Comments
 (0)