Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: attach_connection_to_player
Home

[Freeciv-Dev] Re: attach_connection_to_player

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: attach_connection_to_player
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Sat, 10 May 2003 01:05:23 +0200

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.


[Prev in Thread] Current Thread [Next in Thread]