Skip to content
Snippets Groups Projects
Commit e404a9e7 authored by deuce's avatar deuce
Browse files

Use genwrap msclock() instead of (broken) clock()

Increase line delay from 1/18th to 1/10th of a second...
parent 64d65ed5
Branches
Tags
No related merge requests found
......@@ -361,7 +361,7 @@ void PlayGame(void)
/* Loop until game is over */
for(;;)
{
StartClock = clock();
StartClock = msclock();
/* Display current line */
if(od_control.user_ansi || od_control.user_avatar)
......@@ -504,9 +504,9 @@ void PlayGame(void)
return;
}
/* Delay for about 1/18th of a second, to add a constant delay after */
/* Delay for about 1/10th of a second, to add a constant delay after */
/* each line is displayed that does not depend on the connect speed. */
while(clock() < StartClock + (((clock_t)CLOCKS_PER_SEC) / 18))
while(msclock() < StartClock + (((clock_t)MSCLOCKS_PER_SEC) / 10))
od_sleep(0);
/* Increase score */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment