Remove some redundant variables
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 11 Dec 2010 00:20:07 +0000 (00:20 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 11 Dec 2010 00:20:07 +0000 (00:20 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@3388 78b8d119-cf0a-0410-b17c-f493084dd1d7

ball/demo.c

index f3092a5..9f18cd0 100644 (file)
@@ -102,19 +102,15 @@ static int demo_header_read(fs_file fp, struct demo *d)
 
 static void demo_header_write(fs_file fp, struct demo *d)
 {
-    int magic = DEMO_MAGIC;
-    int version = DEMO_VERSION;
-    int zero  = 0;
-
     char datestr[DATELEN];
 
     strftime(datestr, sizeof (datestr), "%Y-%m-%dT%H:%M:%S", gmtime(&d->date));
 
-    put_index(fp, magic);
-    put_index(fp, version);
-    put_index(fp, zero);
-    put_index(fp, zero);
-    put_index(fp, zero);
+    put_index(fp, DEMO_MAGIC);
+    put_index(fp, DEMO_VERSION);
+    put_index(fp, 0);
+    put_index(fp, 0);
+    put_index(fp, 0);
     put_index(fp, d->mode);
 
     put_string(fp, d->player);