Exempts current players from the extreme pop cap

This will exempt anybody who was once joined into the round, this means people who were assigned at round start or latejoined. even if they died, got gibbed, suicided, or ghosted. This does not exempt people who observed from lobby.
This commit is contained in:
Kyle Spier-Swenson
2019-03-20 14:41:48 -07:00
committed by GitHub
parent e75dc5e121
commit 799d45af99

View File

@@ -61,7 +61,7 @@
hard_popcap = 0
popcap_value = GLOB.clients.len
if(popcap_value >= extreme_popcap && (!hard_popcap || living_player_count() >= hard_popcap))
if(popcap_value >= extreme_popcap && (!hard_popcap || living_player_count() >= hard_popcap) && !joined_player_list.Find(ckey))
log_access("Failed Login: [key] - Population cap reached")
return list("reason"="popcap", "desc"= "\nReason: [CONFIG_GET(string/extreme_popcap_message)]")