if (state != 1) { state = 1 statetime = 0 }