Example #1
0
// Pause 1.5 seconds
void dodGame::WAIT()
{
	Uint32 ticks1;
	ticks1 = SDL_GetTicks();
	scheduler.curTime = ticks1;

	do
	{
		if (scheduler.curTime >= scheduler.TCBLND[0].next_time)
		{
			scheduler.CLOCK();
			if (game.AUTFLG && game.demoRestart == false)
			{
				return;
			}
			scheduler.EscCheck();
		}
		scheduler.curTime = SDL_GetTicks();
	} while (scheduler.curTime < ticks1 + 1500);
}