X-Git-Url: http://git.shiar.nl/netris.git/blobdiff_plain/314fb8c12b376d5e9bc62ec8b5db9458618a162b..HEAD:/util.c diff --git a/util.c b/util.c index e3018f9..92a8908 100644 --- a/util.c +++ b/util.c @@ -81,31 +81,6 @@ void DistInfo(void) ); } -void Rules(void) -{ - Header(); - fprintf(stderr, - "One player mode\n" - "---------------\n" - "Good old Tetris. Scoring is like on the GameBoy version (so try to\n" - "remove as many lines at once as you can). After removing ten lines\n" - "you go to the next level, which will be faster thus making the game\n" - "harder to play.\n" - "\n" - "Two player mode\n" - "---------------\n" - "It's just like normal T*tris except that when you clear more than\n" - "one row with a single piece, the other player receives penalty lines\n" - "For clearing 2, 3 or 4 rows, respectively 1, 2 or 4 junk rows will\n" - "be added to the bottom of your opponent's board respectively.\n" - "The junk rows have exactly one empty column, which will line up for\n" - "multiple rows.\n" - "\n" - "The longest surviving player wins the game.\n" - "\n" - ); -} - ///////////// RANDOM ///////////// /* @@ -237,10 +212,7 @@ void ResumeTime(void) long CurTimeval(void) { - struct timeval tv; - - gettimeofday(&tv, NULL); - return GetTimeval(&tv) - baseTimeval; + return AbsTimeval() - baseTimeval; } static long SetITimer1(long interval, long value)