mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
popcaphotfix: misused a max that could have rendered the hard popcap useless
This commit is contained in:
@@ -126,7 +126,11 @@
|
||||
if(!ticker || ticker.current_state != GAME_STATE_PLAYING)
|
||||
usr << "<span class='danger'>The round is either not ready, or has already finished...</span>"
|
||||
return
|
||||
var/relevent_cap = max(config.hard_popcap, config.extreme_popcap)
|
||||
var/relevent_cap
|
||||
if(config.hard_popcap && config.extreme_popcap)
|
||||
relevent_cap = min(config.hard_popcap, config.extreme_popcap)
|
||||
else
|
||||
relevent_cap = max(config.hard_popcap, config.extreme_popcap)
|
||||
if(relevent_cap && living_player_count() >= relevent_cap && !(ckey(key) in admin_datums))
|
||||
usr << "<span class='danger'>[config.hard_popcap_message]</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user