[Freeciv-Dev] Re: attach_connection_to_player
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, May 09, 2003 at 05:45:01PM -0500, Mike Kaufman wrote:
> On Sat, May 10, 2003 at 12:21:31AM +0200, Christian Knoke wrote:
> > > create peter
> > > set maxplayers 1
> > When chris connects, $SUBJECT should return FALSE, but doesn't.
>
> /* if pplayer is NULL, attach to first non-connected player slot */
> if (!pplayer) {
> if (game.nplayers > game.max_players
> || game.nplayers > MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS) {
> return FALSE;
>
> try changing game.nplayers > game.max_players to
> game.nplayers == game.max_players
> see if that works.
Yes, that works.
> > No message is given in server/connecthand.c line 114.
> >
> > Or what is this message for?
>
> That message is for clients other than you. Connect two clients and see if
> you get the message.
Nope, this message is for me (the rejected client). I get it now.
Christian
--
Christian Knoke * * * http://www.enter.de/~c.knoke/
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
|
|