void FGTower::Update(double dt) {
static int ii = 0; // Counter for spreading the load
+ int ii_max = 15;
//cout << "T" << flush;
// Each time step, what do we need to do?
// We need to go through the list of outstanding requests and acknowedgements
// possibly tell him to hold and what position he is?
}
} else {
- t->clearanceCounter += (dt * holdList.size());
+ t->clearanceCounter += (dt * holdList.size() * ii_max);
}
}
++holdListItr;
++ii;
// How big should ii get - ie how long should the update cycle interval stretch?
- if(ii >= 15) {
+ if(ii >= ii_max) {
ii = 0;
}
}