made the alien player limit a config option

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-10-14 13:59:50 +10:00
parent cb0e7fa312
commit 4e08f61642
3 changed files with 16 additions and 5 deletions
+4 -4
View File
@@ -455,11 +455,11 @@
src << browse(null, "window=latechoices") //closes late choices window
src << browse(null, "window=playersetup") //closes the player setup window
#define MAX_ALIEN_PLAYER_PERCENT 20
//cael - this should probably be moved to ticker or somewhere, but it's fine here for now
//limits the number of alien players in a game
/proc/GetAvailableAlienPlayerSlots()
if(!config.limitalienplayers)
return 9999
var/num_players = 0
//check new players
@@ -472,4 +472,4 @@
if(H.ckey)
num_players++
return round(num_players * (MAX_ALIEN_PLAYER_PERCENT / 100))
return round(num_players * (config.alien_to_human_ratio / 100))