[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unittype.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unittype.c |
Date: |
25 Jan 2004 17:29:25 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/25 17:29:25
Modified files:
src/unit : unittype.c
Log message:
Only Save unit stats of Active Players
Patches:
Index: stratagus/src/unit/unittype.c
diff -u stratagus/src/unit/unittype.c:1.150 stratagus/src/unit/unittype.c:1.151
--- stratagus/src/unit/unittype.c:1.150 Sat Jan 24 10:43:57 2004
+++ stratagus/src/unit/unittype.c Sun Jan 25 17:29:25 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unittype.c,v 1.150 2004/01/23 23:43:57 wizzard Exp $
+// $Id: unittype.c,v 1.151 2004/01/25 06:29:25 wizzard Exp $
//@{
@@ -1187,7 +1187,7 @@
// char** sp;
CLprintf(file, "\n--- -----------------------------------------\n");
- CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.150
2004/01/23 23:43:57 wizzard Exp $\n\n");
+ CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.151
2004/01/25 06:29:25 wizzard Exp $\n\n");
#if 0
// Original number to internal unit-type name.
@@ -1218,7 +1218,9 @@
for (i = 0; i < NumUnitTypes; ++i) {
CLprintf(file, "\n");
for (j = 0; j < PlayerMax; ++j) {
- SaveUnitStats(&UnitTypes[i]->Stats[j],
UnitTypes[i]->Ident, j, file);
+ if (Players[j].Type != PlayerNobody) {
+ SaveUnitStats(&UnitTypes[i]->Stats[j],
UnitTypes[i]->Ident, j, file);
+ }
}
}
}