{
MovDelay[x][y] = 7;
- if (DelayReached(&sound_delay,sound_delay_value))
+ if (DelayReached(&sound_delay, sound_delay_value))
{
PlaySoundLevel(x,y,SND_AMOEBE);
sound_delay_value = 30;
if (PlayerMovPos)
ScrollFigure(0);
- while(!DelayReached(&action_delay, action_delay_value))
- Delay(5);
+ /* main game synchronization point */
+ WaitUntilDelayReached(&action_delay, action_delay_value);
if (tape.pausing || (tape.playing && !TapePlayDelay()))
return;
}
}
- if (TimeLeft>0 && TimeFrames>=(100/GameSpeed) && !tape.pausing)
+ if (TimeLeft>0 && TimeFrames>=(1000/GameSpeed) && !tape.pausing)
{
TimeFrames = 0;
TimeLeft--;