anchor.diff:  			. = t_air.return_temperature()
   	return
   
  -/obj/spacepod/proc/moved_inside(var/mob/living/carbon/human/H as mob)
  -	var/fukkendisk = usr.GetTypeInAllContents(/obj/item/weapon/disk/nuclear)
  -	if(fukkendisk)
  -		usr << "\red <B>The nuke-disk locks the door as you try to get in. You evil person.</b>"
  -		return
  -
  -	if(H && H.client && H in range(1))
  -		if(src.occupant && src.occupant2)
  -			H << "<span class='notice'>[src.name] is full.</span>"
  -			return
  -
  -		if(src.occupant && !src.occupant2)
  -			if(src.occupant == H)
  -				H.visible_message("You climb over the console and drop down into the secondary seat.")
  -			H.reset_view(src)
  -			H.stop_pulling()
  -			H.forceMove(src)
  -			if(src.occupant == H)	occupant = null
  -			src.occupant2 = H
  -			src.add_fingerprint(H)
  -			src.forceMove(src.loc)
  -			playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
  -			return 1
  -
  -		else
  -			if(!src.occupant)
  -				H.reset_view(src)
  -				H.stop_pulling()
  -				H.forceMove(src)
  -				src.occupant = H
  -				src.add_fingerprint(H)
  -				src.forceMove(src.loc)
  -				playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
  -				return 1
  -			else
  -				return
  -	else
  -		return 0
  -
   /obj/spacepod/proc/moved_other_inside(var/mob/living/carbon/human/H as mob)
  -	if(!src.occupant2)
  -		H.reset_view(src)
  +	__SANITY_CHECK_FUCKING_OCCUPANT_VARS()
  +	if(!occupant2)
   		H.stop_pulling()
   		H.forceMove(src)
  -		src.occupant2 = H
  -		src.forceMove(src.loc)
  +		occupant2 = H
  +		H.forceMove(src)
   		playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
   		return 1
  -	else
  +
  +/obj/spacepod/MouseDrop_T(mob/M, mob/user)
  +	if(!isliving(M))
   		return
   
  -
  -
  -/obj/spacepod/MouseDrop_T(mob/M as mob, mob/user as mob)
  -	if(!isliving(M)) return
  +	__SANITY_CHECK_FUCKING_OCCUPANT_VARS()
   
   	if(M != user && M.stat == DEAD && allow2enter)
  -		if(src.occupant2 && !src.occupant)
  +		if(occupant2 && !occupant)
   			usr << "<span class='danger'><b>You can't put a corpse into the driver's seat!</b></span>"
  -			return
  -		if(!src.occupant2)
  +			return 0
  +		if(!occupant2)
   			visible_message("<span class='danger'>[user.name] starts loading [M.name] into the pod!</span>")
   			sleep(10)
   			moved_other_inside(M)
   
   	if(M == user)
  -		move_inside(user)
  -
  -
  -/obj/spacepod/verb/move_inside(var/mob/user)
  +		enter_pod(user)
  +
  +
  +/obj/spacepod/verb/enter_pod(mob/user = usr)
   	set category = "Object"
   	set name = "Enter Pod"
   	set src in oview(1)
  -	var/fukkendisk = usr.GetTypeInAllContents(/obj/item/weapon/disk/nuclear)
  -
  -	if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other
  -		return
  -	if (!ishuman(user)) return
  +
  +	if(!istype(user))
  +		return 0
  +
  +	var/fukkendisk = user.GetTypeInAllContents(/obj/item/weapon/disk/nuclear)
  +
  +	if(user.incapacitated()) //are you cuffed, dying, lying, stunned or other
  +		return 0
  +	if(!ishuman(user))
  +		return 0
   
   	if(fukkendisk)
  -		user << "<span class='warning'><B>The nuke-disk is locking the door every time you try to open it. You get the feeling that it doesn't want to go into the spacepod.</b></span>"
  -		return
  +		user << "<span class='danger'><B>The nuke-disk is locking the door every time you try to open it. You get the feeling that it doesn't want to go into the spacepod.</b></span>"
  +		return 0
   
   	for(var/mob/living/carbon/slime/S in range(1,usr))
   		if(S.Victim == user)
   			user << "You're too busy getting your life sucked out of you."
  -			return
  -
  -	try_user_enter(user)
  -
  -/obj/spacepod/proc/try_user_enter(var/mob/user)
  -	if(!src.occupant && !src.occupant2)
  -		visible_message("<span class='notice'>[user] starts to climb into [src.name]</span>")
  -		if(enter_after(40,user))
  -			if(!src.occupant)
  -				moved_inside(user)
  -			else if(src.occupant != user)
  -				user << "<span class='notice'>[src.occupant] was faster. Try better next time, loser.</span>"
  -		else	user << "<span class='notice'>You stop entering the spacepod.</span>"
  -		return
  -
  -	if(!allow2enter)
  -		user << "<span class='danger'>The door is locked!</span>"
  -		return
  -
  -	if(occupant && occupant2)
  +			return 0
  +
  +	move_inside(user)
  +
  +/obj/spacepod/proc/move_inside(mob/user)
  +	if(!istype(user))
  +		log_debug("SHIT'S GONE WRONG WITH THE SPACEPOD [src] AT [x], [y], [z], AREA [get_area(src)], TURF [get_turf(src)]")
  +
  +	__SANITY_CHECK_FUCKING_OCCUPANT_VARS()
  +
  +	if(!occupant)
  +		visible_message("<span class='notice'>[user] starts to climb into \the [src].</span>")
  +		if(do_after(user, 40, target = src))
  +			if(!occupant)
  +				user.stop_pulling()
  +				occupant = user
  +				user.forceMove(src)
  +				add_fingerprint(user)
  +				playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
  +			else
  +				user << "<span class='notice'>[occupant] was faster. Try better next time, loser.</span>"
  +		else
  +			user << "<span class='notice'>You stop entering \the [src].</span>"
  +
  +	else if(!occupant2)
  +		visible_message("<span class='notice'>[user] starts to climb into \the [src].</span>")
  +		if(do_after(user, 40, target = src))
  +			if(!occupant2)
  +				user.stop_pulling()
  +				occupant2 = user
  +				user.forceMove(src)
  +				add_fingerprint(user)
  +				playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
  +			else
  +				user << "<span class='notice'>[occupant] was faster. Try better next time, loser.</span>"
  +		else
  +			user << "<span class='notice'>You stop entering \the [src].</span>"
  +	else
   		user << "<span class='danger'>You can't fit in \the [src], it's full!</span>"
  -		return
  -
  -	if(occupant && !occupant2)
  -		user << "<span class='notice'><b>You start climbing into the passenger bay.</b></span>"
  -		user_enter(user)
  -
  -	if(!occupant && occupant2)
  -		user << "<span class='notice'><b>You start climbing into the pilot's seat.</b></span>"
  -		user_enter(user)
  -
  -/obj/spacepod/proc/user_enter(var/mob/user)
  -	visible_message("<span class='notice'>[user] starts to climb into \the [src.name].</span>")
  -	if(enter_after(40,user))
  -		moved_inside(user)
  -	else
  -		user << "You stop entering the spacepod."
  +
  +/obj/spacepod/proc
  +	__SANITY_CHECK_FUCKING_OCCUPANT_VARS()	// /obj/spacepod/proc/__SANITY_CHECK_FUCKING_OCCUPANT_VARS()
  +		if(occupant)
  +			if(!ismob(occupant))
  +				occupant = null
  +				occupant.forceMove(get_turf(src))
  +				log_debug("##SPACEPOD WARNING: NON-MOB OCCUPANT [occupant], TURF [get_turf(src)] | AREA [get_area(src)] | COORDS [x], [y], [z]")
  +			else if(occupant.loc != src)
  +				occupant = null
  +				log_debug("##SPACEPOD WARNING: OCCUPANT [occupant] ESCAPED, TURF [get_turf(src)] | AREA [get_area(src)] | COORDS [x], [y], [z]")
  +		if(occupant2)
  +			if(!ismob(occupant2))
  +				occupant2 = null
  +				occupant2.forceMove(get_turf(src))
  +				log_debug("##SPACEPOD WARNING: NON-MOB OCCUPANT [occupant2], TURF [get_turf(src)] | AREA [get_area(src)] | COORDS [x], [y], [z]")
  +			else if(occupant2.loc != src)
  +				occupant2 = null
  +				log_debug("##SPACEPOD WARNING: OCCUPANT [occupant2] ESCAPED, TURF [get_turf(src)] | AREA [get_area(src)] | COORDS [x], [y], [z]")
  +
  +		if(!occupant && !allow2enter)
  +			allow2enter = 1
  +			log_debug("##SPACEPOD WARNING: SOME FUCKHEAD LEFT THE DOORS LOCKED, TURF [get_turf(src)] | AREA [get_area(src)] | COORDS [x], [y], [z]")
   
   /obj/spacepod/verb/exit_pod()
   	set name = "Exit pod"
  
positive.code: 
  	var/mob/user = usr
  	var/spos = 0
  	if(!ismob(user))	return
  
  	if(occupant == user)	spos = 1
  	if(occupant2 == user)	spos = 2
  
negative.code: 	var/oldhealth = health
  	health = max(0, health - damage)
  	var/percentage = (health / initial(health)) * 100
  	__SANITY_CHECK_FUCKING_OCCUPANT_VARS()
  	if(occupant && oldhealth > health && percentage <= 25 && percentage > 0)
  		var/sound/S = sound('sound/effects/engine_alert2.ogg')
  		S.wait = 0 //No queue
  