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

> [cazf...@gmail.com - Tue May 05 21:12:39 2009]:
> 
> 2008/5/4 Marko Lindqvist <cazf...@gmail.com>:
> >
> >  This adds server command for saving current game as scenario
> > (and not as regular savegame)
> 
>  New version
> 
>  Scenario info structure now contains information whether current
> players or start positions should be saved to scenario.

I think scenario.name and scenario.description are missing
initialization in game_init(). Attached patch fixes that.

I was going to say that MAX_LEN_PACKET as the length of
the description would make the total packet length longer
than that, but I see that other packets use this for very
long strings too. I guess it does not matter then.


-----------------------------------------------------------------------
俺は想像できるより長いぞ。
commit c90294803f55eb49c5acfaba58cbbda3cfb921b8
Author: Madeline Book <madeline.b...@gmail.com>
Date:   Wed May 20 16:43:49 2009 -0400

    Initialize game.scenario strings.

diff --git a/common/game.c b/common/game.c
index b6b4db7..1e04124 100644
--- a/common/game.c
+++ b/common/game.c
@@ -358,6 +358,8 @@ void game_init(void)
   game.control.prefered_tileset[0] = '\0';
 
   game.scenario.is_scenario = FALSE;
+  game.scenario.name[0] = '\0';
+  game.scenario.description[0] = '\0';
   game.scenario.players = TRUE;
 
   sz_strlcpy(game.demography, GAME_DEFAULT_DEMOGRAPHY);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to