Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/robots
Date: Tuesday May 2, 2000 @ 22:16
Author: ahn
Update of /home/netrek/cvsroot/Vanilla/robots
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv11101/robots
Modified Files:
inl.c
Log Message:
Changes by Dave Ahn. See ChangeLog for details.
****************************************
Index: Vanilla/robots/inl.c
diff -u Vanilla/robots/inl.c:1.28 Vanilla/robots/inl.c:1.29
--- Vanilla/robots/inl.c:1.28 Thu Apr 20 18:41:19 2000
+++ Vanilla/robots/inl.c Tue May 2 22:16:51 2000
@@ -1,7 +1,7 @@
-/* $Id: inl.c,v 1.28 2000/04/20 23:41:19 ahn Exp $ */
+/* $Id: inl.c,v 1.29 2000/05/03 03:16:51 ahn Exp $ */
#ifndef lint
-static char vcid[] = "$Id: inl.c,v 1.28 2000/04/20 23:41:19 ahn Exp $";
+static char vcid[] = "$Id: inl.c,v 1.29 2000/05/03 03:16:51 ahn Exp $";
#endif /* lint */
/*
@@ -691,6 +691,17 @@
sleep(2); /* a kluge to allow time for all the ntservs to run */
/* savestats() before stats-post processing I hope */
+
+ /* change all player offset position in playerfile to -1 so that
+ stats don't get saved to next game's playerfile. this is also
+ done in reset_inl(1), but the delay causes synchronization
+ problems so we do it again here. this is ugly and should
+ probably be fixed.
+ CAVEAT: player must logout and login to play a new game. -da */
+
+ for (c=0; c<MAXPLAYER; c++)
+ players[c].p_pos = -1;
+
sprintf(name, "%s.%d", N_INLLOG, tv.tv_sec);
rename(N_INLLOG, name);