<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40288 >

 This patch sets minimum number of human players to 0. Will commit immediately.


 - ML

diff -Nurd -X.diff_ignore freeciv/common/game.h freeciv/common/game.h
--- freeciv/common/game.h	2008-04-01 22:40:44.000000000 +0300
+++ freeciv/common/game.h	2008-06-18 20:13:47.000000000 +0300
@@ -164,7 +164,7 @@
 #define GAME_MAX_END_YEAR        5000
 
 #define GAME_DEFAULT_MIN_PLAYERS     1
-#define GAME_MIN_MIN_PLAYERS         1
+#define GAME_MIN_MIN_PLAYERS         0
 #define GAME_MAX_MIN_PLAYERS         MAX_NUM_PLAYERS
 
 #define GAME_DEFAULT_MAX_PLAYERS     MAX_NUM_PLAYERS
diff -Nurd -X.diff_ignore freeciv/server/stdinhand.c freeciv/server/stdinhand.c
--- freeciv/server/stdinhand.c	2008-06-18 18:49:38.000000000 +0300
+++ freeciv/server/stdinhand.c	2008-06-18 20:15:00.000000000 +0300
@@ -3829,6 +3829,11 @@
       start_cmd_reply(caller, notify,
                       _("Not enough human players, game will not start."));
       return FALSE;
+    } else if (game.info.nplayers < 1) {
+      /* At least one player required */
+      start_cmd_reply(caller, notify,
+                      _("No players, game will not start."));
+      return FALSE;
     } else if (game.info.nplayers - server.nbarbarians > server.playable_nations) {
       cmd_reply(CMD_START_GAME, caller, C_FAIL,
 		_("Not enough nations for all players, game will not start."));
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to