Net_Owl_BC_done/Arty.cpp
/* Keep X within range, and reverse Delta if necessary to do so */
Keep X within range, and reverse Delta if necessary to do so
Keep X within range and reverse Delta if necessary to do so
void TList::AdjustX( int &X, int &DeltaX )
{
  int TestX = X + DeltaX;
  if ((TestX < 1) || (TestX > Xmax)) { TestX = X;   DeltaX = -DeltaX; };
  X = TestX;
}
void TList :: AdjustX ( int & X , int & DeltaX ) { int TestX = X + DeltaX ; if ( ( TestX < 1 ) || ( TestX > Xmax ) ) { TestX = X ; DeltaX = - DeltaX ; } ; X = TestX ; }
Keep X within range, and reverse Delta if necessary to do so
Keep X within range and reverse Delta if necessary to do so