anchor.diff:  	proc/close_spawn_windows()
   		src << browse(null, "window=latechoices") //closes late choices window
   		src << browse(null, "window=playersetup") //closes the player setup window
  -
  -//limits the number of alien players in a game
  -/proc/GetAvailableAlienPlayerSlots()
  -	if(!config.limitalienplayers)
  -		return 9999
  -
  -	var/num_players = 0
  -
  -	//check new players
  -	for(var/mob/new_player/N in world)
  -		if(N.preferences && N.ready)
  -			num_players++
  -
  -	//check players already spawned, only count humans or aliens
  -	for(var/mob/living/carbon/human/H in world)
  -		if(H.ckey)
  -			num_players++
  -
  -	return round(num_players * (config.alien_to_human_ratio / 100))
  
positive.code: 			if(preferences.species != "Human")
  				if(!is_alien_whitelisted(src, preferences.species) && config.usealienwhitelist)
  					src << alert("You are currently not whitelisted to play [preferences.species].")
  					return 0
  				else if(GetAvailableAlienPlayerSlots() < 1)
  					src << "\red Unable to join game. Too many players have already joined as aliens."
  					return 0
  
  			LateChoices()
  
negative.code: 			return 1
  
  		if(href_list["ready"])
  			ready = !ready
  
  		if(href_list["refresh"])
  			src << browse(null, "window=playersetup") //closes the player setup window
  