Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8749) Scenario fixes
Home

[Freeciv-Dev] Re: (PR#8749) Scenario fixes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8749) Scenario fixes
From: "Per Inge Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 16 May 2004 02:10:11 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8749 >

On Sat, 15 May 2004, Jason Short wrote:
> In a scenario, if you raise maxplayers and set aifill to be too high,
> the extra players will becut.I don't know what would happen to them
> if they were human.

server/stdinhand.c:
 4471:       if (map.fixed_start_positions
 4472:    && game.max_players > map.num_start_positions) {
 4473:  freelog(LOG_VERBOSE, "Reduced maxplayers from %i to %i to fit "
 4474:          "to the number of start positions.",
 4475:          game.max_players, map.num_start_positions);
 4476:  game.max_players = map.num_start_positions;
 4477:       }
 4478:
 4479:       if (game.nplayers > game.max_players) {
 4480:  /* Because of the way player ids are renumbered during
 4481:     server_remove_player() this is correct */
 4482:         while (game.nplayers > game.max_players) {
 4483:    server_remove_player(get_player(game.max_players));
 4484:         }

You should replace map.fixed_start_positions in the conditional above with
something else, I guess.

  - Per




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