anchor.diff:  						finish_undocking()
   					reset()		//server is done undocking!
   
  -
  -
  -
  -	if (dock_state != STATE_DOCKING && dock_state != STATE_UNDOCKING)
  +	if (response_sent || resend_counter > 0)
  +		resend_counter++
  +
  +	if (resend_counter >= MESSAGE_RESEND_TIME || (dock_state != STATE_DOCKING && dock_state != STATE_UNDOCKING))
   		response_sent = 0
  +		resend_counter = 0
   
   	//handle invalid states
   	if (control_mode == MODE_NONE && dock_state != STATE_UNDOCKED)
  
positive.code: 	var/dock_state = STATE_UNDOCKED
  	var/control_mode = MODE_NONE
  	var/response_sent = 0		//so we don't spam confirmation messages
  
  	var/override_enabled = 0	//skips checks for the docking port being ready
  	var/received_confirm = 0	//for undocking, whether the client has recieved a confirmation from the server
  
negative.code: 	MODE_CLIENT|STATE_UNDOCKED		sent a request for docking and now waiting for a reply.
  	MODE_CLIENT|STATE_DOCKING		server told us they are OK to dock, waiting for our docking port to be ready.
  	MODE_CLIENT|STATE_DOCKED		idle - docked as client.
  	MODE_CLIENT|STATE_UNDOCKING		we are either waiting for our docking port to be ready or for the server to give us the OK to finish undocking.
  
  	MODE_SERVER|STATE_UNDOCKED		should never happen.
  	MODE_SERVER|STATE_DOCKING		someone requested docking, we are waiting for our docking port to be ready.
  	MODE_SERVER|STATE_DOCKED		idle - docked as server
  