anchor.diff:  				if(chargecount == 10)
   
   					chargecount = 0
  -					charging = 1
  +					charging = APC_CHARGING
   
   		else // chargemode off
   			charging = 0
  
positive.code: 
  		if(!charging)
  			update_overlay |= APC_UPOVERLAY_CHARGEING0
  		else if(charging == 1)
  			update_overlay |= APC_UPOVERLAY_CHARGEING1
  		else if(charging == 2)
  			update_overlay |= APC_UPOVERLAY_CHARGEING2
  
  		if (!equipment)
  
negative.code: 	// And now, separately for cleanness, the lighting changing
  	if(update_state & UPSTATE_ALLGOOD)
  		switch(charging)
  			if(APC_NOT_CHARGING)
  				light_color = LIGHT_COLOR_RED
  			if(APC_CHARGING)
  				light_color = LIGHT_COLOR_BLUE
  			if(APC_FULLY_CHARGED)
  				light_color = LIGHT_COLOR_GREEN
  		set_light(lon_range)
  	else if(update_state & UPSTATE_BLUESCREEN)
  