code duplication
[netris.git] / util.c
diff --git a/util.c b/util.c
index e3018f99012d623c8e7f20f3ca7aef466a61d316..92a890859a7bb5f701afa30a3614c04f2f0a9bed 100644 (file)
--- 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)