Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] (PR#12855) fix crash in start command
Home

[Freeciv-Dev] (PR#12855) fix crash in start command

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12855) fix crash in start command
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Apr 2005 23:46:49 -0700
Reply-to: bugs@xxxxxxxxxxx

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

With the new start command the server crashes if /start is done from the
command line.  This patch fixes it.

-jason

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.354.2.31
diff -u -r1.354.2.31 stdinhand.c
--- server/stdinhand.c  19 Apr 2005 22:05:57 -0000      1.354.2.31
+++ server/stdinhand.c  20 Apr 2005 06:45:53 -0000
@@ -3627,6 +3627,9 @@
       return FALSE;
     } else if (check) {
       return TRUE;
+    } else if (!caller) {
+      start_game();
+      return TRUE;
     } else {
       int started = 0, notstarted = 0;
       const int percent_required = 100;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12855) fix crash in start command, Jason Short <=