Code:
void rotateperhour(ENTITY* ent)
{
   float ticks;
   while(1)
   {
      ticks = cycle(ticks+time_frame, 0, 57600);
      ent.pan = (ticks / 16) / 10;   //or  ent.pan = ticks / 160;
      wait(1);
   }
}

Remember guys ... time_step is in TICKS, and there are 16 TICKS in a SECOND.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial