anchor.diff:  	// this allows the APC to be embedded in a wall, yet still inside an area
   	if (building)
   		setDir(ndir)
  -	src.tdir = dir		// to fix Vars bug
  +	tdir = dir		// to fix Vars bug
   	setDir(SOUTH)
  -
  -	if(auto_name)
  -		name = "\improper [get_area(src)] APC"
   
   	switch(tdir)
   		if(NORTH)
  
positive.code: /obj/machinery/power/apc/proc/make_terminal()
  	// create a terminal object at the same position as original turf loc
  	// wires will attach to this
  	terminal = new/obj/machinery/power/terminal(src.loc)
  	terminal.setDir(tdir)
  	terminal.master = src
  
  
negative.code: 		cell = new cell_type
  		cell.charge = start_charge * cell.maxcharge / 100 		// (convert percentage to actual value)
  
  	var/area/A = loc.loc
  
  	//if area isn't specified use current
  	if(areastring)
  		area = get_area_instance_from_text(areastring)
  		if(!area)
  			area = A
  			stack_trace("Bad areastring path for [src], [areastring]")
  	else if(isarea(A) && areastring == null)
  		area = A
  
  	if(auto_name)
  		name = "\improper [get_area_name(area, TRUE)] APC"
  
  	update_icon()
  
  	make_terminal()
  