Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/ntserv
Date: Wednesday June 16, 1999 @ 14:36
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv6876
Modified Files:
main.c
Log Message:
Added a new step in the new player sequence. As per Cameron's
request, pending eject vote on a new player slot is cleared.
--Carlos V.
****************************************
Index: Vanilla/ntserv/main.c
diff -u Vanilla/ntserv/main.c:1.13 Vanilla/ntserv/main.c:1.14
--- Vanilla/ntserv/main.c:1.13 Fri Jun 11 03:04:11 1999
+++ Vanilla/ntserv/main.c Wed Jun 16 14:36:37 1999
@@ -60,6 +60,7 @@
int callHost=0;
time_t starttime;
int i;
+ register struct player *j; /* for traipsing through the playerlist */
extern void forceShutdown ();
char pseudo[PSEUDOSIZE]; /* Was a global - MK 9/30/94 */
@@ -392,6 +393,12 @@
fclose(logfile);
}
}
+
+ /* reset eject voting to avoid inheriting this slot's last occupant's */
+ /* escaped fate just in case the last vote comes through after the */
+ /* old guy quit and the new guy joined -Villalpando req. by Cameron */
+ for (i = 0, j = &players[i]; i < MAXPLAYER; i++, j++)
+ j->voting[me->p_no] = -1;
/* Get input until the player quits or dies */
living++;