Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] (PR#6373) Endgame command not working.
Home

[Freeciv-Dev] (PR#6373) Endgame command not working.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6373) Endgame command not working.
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Thu, 2 Oct 2003 05:47:56 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[glip - Thu Oct  2 10:23:01 2003]: 
 
> It's been like this for a long time.  Maybe I am doing something wrong? 
> The error messages are confusing, anyway. 
>  
> G. 
>  
> > endgame 
> Game saved as civgame+0120.sav.gz 
> > load ggg.gz 
> Can't load a game while another is running. 
> > st 
> Cannot start the game: it is already running. 
> > endgame 
> Cannot end the game: no game running. 
>  
 
Hope attached small fix can help. 
Unfortunately, i can't test it today :( 
 
Thanks, evyscr. 
 
PS Please, add info about multiline "if" condition in doc/CodingStyle. 
--- stdinhand-orig.c    2003-09-29 10:21:27 +0400
+++ stdinhand.c 2003-10-02 16:25:52 +0400
@@ -3725,7 +3725,8 @@
     return;
   }
 
-  if (server_state != PRE_GAME_STATE) {
+  if ((server_state != PRE_GAME_STATE)
+       && (server_state != GAME_OVER_STATE)) {
     cmd_reply(CMD_LOAD, caller, C_FAIL, _("Can't load a game while another "
                                           "is running."));
     return;

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