Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6396) assertion on server start
Home

[Freeciv-Dev] Re: (PR#6396) assertion on server start

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6396) assertion on server start
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Oct 2003 15:36:33 -0700
Reply-to: rt@xxxxxxxxxxxxxx

here's a patch. probably not optimal. maybe we should be putting cm_free
and cm_init in game_init and game_free instead.

-mike

? timer_core.diff
Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.295
diff -u -r1.295 stdinhand.c
--- server/stdinhand.c  2003/09/28 17:44:16     1.295
+++ server/stdinhand.c  2003/10/04 22:35:20
@@ -31,6 +31,7 @@
 
 #include "astring.h"
 #include "capability.h"
+#include "cm.h"
 #include "events.h"
 #include "fcintl.h"
 #include "game.h"
@@ -3744,6 +3745,7 @@
   server_game_free();
 
   game_init();
+  cm_init();
 
   loadtimer = new_timer_start(TIMER_CPU, TIMER_ACTIVE);
   uloadtimer = new_timer_start(TIMER_USER, TIMER_ACTIVE);

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