Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/tools
Date: Thursday April 20, 2000 @ 18:38
Author: ahn
Update of /home/netrek/cvsroot/Vanilla/tools
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv8197
Modified Files:
ltd_dump.c
Log Message:
Fix ltd_dump to count SB ticks when calculating playing time.
****************************************
Index: Vanilla/tools/ltd_dump.c
diff -u Vanilla/tools/ltd_dump.c:1.6 Vanilla/tools/ltd_dump.c:1.7
--- Vanilla/tools/ltd_dump.c:1.6 Thu Feb 24 21:11:42 2000
+++ Vanilla/tools/ltd_dump.c Thu Apr 20 18:38:06 2000
@@ -1,4 +1,4 @@
-/* $Id: ltd_dump.c,v 1.6 2000/02/25 03:11:42 cameron Exp $
+/* $Id: ltd_dump.c,v 1.7 2000/04/20 23:38:06 ahn Exp $
*
* Dave Ahn
*
@@ -28,7 +28,7 @@
#define LEN_ABBR 4
#define LEN_NAME 30
-static const char rcsid [] = "$Id: ltd_dump.c,v 1.6 2000/02/25 03:11:42 cameron Exp $";
+static const char rcsid [] = "$Id: ltd_dump.c,v 1.7 2000/04/20 23:38:06 ahn Exp $";
static FILE *fp;
@@ -114,14 +114,9 @@
int i, t;
t = 0;
- for (i=1; i<8; i++) {
+ for (i=1; i<8; i++)
+ t += ltd[i].ticks.total;
- if (i != LTD_SB) {
- t += ltd[i].ticks.total;
- }
-
- }
-
if (t < 10) return;
fprintf(fp, "++ LTD statistics for player [%s] (%s)\n\n", name, race);
@@ -221,7 +216,7 @@
fprintf(fp,
" | kills | armies |(m) time (%%)\n"
- "Name 67890123456|R| kt dt kbp kbt max kph | at ak pad| tt| tr tcc red yel\n"
+ "Name |R| kt dt kbp kbt max kph | at ak pad| tt| tr tcc red yel\n"
"----------------|-|--- -- --- --- --- -----|--- --- ---|---|--- --- --- ---\n"
);