Net_Owl_BC_done/Arty.cpp
/* Keep Y within range, and reverse Delta if necessary to do so */
Keep Y within range, and reverse Delta if necessary to do so
Keep Y within range and reverse Delta if necessary to do so
void TList::AdjustY( int &Y, int &DeltaY )
{
  int TestY = Y + DeltaY;
  if ((TestY < 1) || (TestY > Ymax)) {  TestY = Y;  DeltaY = -DeltaY;  };
  Y = TestY;
}
void TList :: AdjustY ( int & Y , int & DeltaY ) { int TestY = Y + DeltaY ; if ( ( TestY < 1 ) || ( TestY > Ymax ) ) { TestY = Y ; DeltaY = - DeltaY ; } ; Y = TestY ; }
Keep Y within range, and reverse Delta if necessary to do so
Keep Y within range and reverse Delta if necessary to do so