Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS update: Vanilla/xsg



Date:	Thursday February 24, 19100 @ 22:13
Author:	cameron

Update of /home/netrek/cvsroot/Vanilla/xsg
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv683/xsg

Modified Files:
	playerlist.c inform.c 
Log Message:
Remove LTD_STATS compilation errors from xsg
SIGSYS defined twice on Red Hat V6.0


****************************************

Index: Vanilla/xsg/playerlist.c
diff -u Vanilla/xsg/playerlist.c:1.1 Vanilla/xsg/playerlist.c:1.2
--- Vanilla/xsg/playerlist.c:1.1	Wed Nov 11 20:44:55 1998
+++ Vanilla/xsg/playerlist.c	Thu Feb 24 22:13:20 2000
@@ -148,6 +148,7 @@
 	    W_ClearArea(plstatw, 0, i+2, 83, 1, backColor);
 	    continue;
 	}
+#ifndef LTD_STATS
 	if (j->p_ship.s_type == STARBASE) {
 	    kills=j->p_stats.st_sbkills;
 	    losses=j->p_stats.st_sblosses;
@@ -164,6 +165,15 @@
 	dRating = defenseRating(j);
 	pRating = planetRating(j);
 	bRating = bombingRating(j);
+#else /* LTD_STATS */
+	kills = 0;
+	losses = 0;
+	ratio = 0;
+	oRating = 0;
+	dRating = 0;
+	pRating = 0;
+	bRating = 0;
+#endif /* LTD_STATS */
 	(void) sprintf(buf, "%c%c %s  %-9.9s %-16.16s%5.2f %5d %5d %6.2lf   %5.2f   %5.2f %8.2f",
 	    teamlet[j->p_team],
 	    shipnos[j->p_no],
@@ -177,7 +187,11 @@
 	    ratio,
 	    oRating,
 	    dRating,
+#ifndef LTD_STATS
 	    (oRating+pRating+bRating)*(j->p_stats.st_tticks/36000.0));
+#else /* LTD_STATS */
+	    0.0);
+#endif /* LTD_STATS */
 	W_WriteText(plstatw, 0, i+2, 
 		/* TSH 2/10/93 */
 		(me->p_flags & PFPLOCK && j->p_no == me->p_playerl)?
Index: Vanilla/xsg/inform.c
diff -u Vanilla/xsg/inform.c:1.2 Vanilla/xsg/inform.c:1.3
--- Vanilla/xsg/inform.c:1.2	Fri Apr 30 15:19:20 1999
+++ Vanilla/xsg/inform.c	Thu Feb 24 22:13:20 2000
@@ -112,6 +112,7 @@
 	    strcpy(buf, "        Rating Total");
 	    W_WriteText(infow, W_Textwidth, W_Textheight*line++, playerColor(j), buf, strlen(buf),
 		W_RegularFont);
+#ifndef LTD_STATS
 	    sprintf(buf, "Bombing: %5.2f  %5d", 
 		bombingRating(j),
 		j->p_stats.st_armsbomb + j->p_stats.st_tarmsbomb);
@@ -143,6 +144,7 @@
 		(float) j->p_stats.st_tticks / 36000.0);
 	    W_WriteText(infow, W_Textwidth, W_Textheight*line++, playerColor(j), buf, strlen(buf),
 		W_RegularFont);
+#endif /* LTD_STATS */
 	}    
     }
     else {  /* Planet */