[Freeciv-Dev] (PR#10051) max_players change on load
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10051 >
> [jdorje - Tue Sep 14 00:14:49 2004]:
>
> Patch wanted.
>
Here it is.
Index: server/srv_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/srv_main.c,v
retrieving revision 1.191
diff -u -r1.191 srv_main.c
--- server/srv_main.c 13 Sep 2004 15:54:54 -0000 1.191
+++ server/srv_main.c 14 Sep 2004 01:11:57 -0000
@@ -1796,7 +1796,9 @@
player_limit_to_government_rates(pplayer);
pplayer->economic.gold = game.gold;
} players_iterate_end;
- game.max_players = game.nplayers;
+ if(game.is_new_game) {
+ game.max_players = game.nplayers;
+ }
/* we don't want random start positions in a scenario which
already
provides them. -- Gudy */
--
Brett Albertson
brett.albertson@xxxxxxxxxxxx
|
|