This entire function can be one line:

void UpdateLatency(int latency_ms)
{
  real_move_interval = max(latency_ms, 200);
}

Though I don't understand where the magic 200 comes from.