Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VANILLA-L:720] Re: [VANILLA-L:719] Eject and Eject again bug



Bob Tanner wrote:
> ntserv/gencmd.c:301

Actually, ntserv/gencmds.c

>     for (i = 0, j = &players[i]; i < MAXPLAYER; i++, j++) {
>       j->voting[what] = -1;
>     }
> This code DOES get executed but it is not resetting the the vote
> count.

Hmm.  j->voting is part of player struct, and is defined as a time_t,
so what is time_t on your machine, is it signed?  Because -1 is not a
useful value if it isn't a signed type.

daemonII.c sets it to zero.

I haven't yet figured out what -1 is used for.

-- 
James Cameron                                    (cameron@stl.dec.com)
Digital Equipment Corporation (Australia) Pty. Ltd. A.C.N. 000 446 800
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com


Follow-Ups: References: