<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14490 >
On 1/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 1: In file beta2.sav.gz, there is no entry in the registry for c7.ai.urgency > (or > the entries are out of order.) I think problem is that worklist length varies between cities. Untested patch attached. - ML
diff -Nurd -X.diff_ignore freeciv/common/worklist.c freeciv/common/worklist.c --- freeciv/common/worklist.c 2006-07-17 23:56:46.000000000 +0300 +++ freeciv/common/worklist.c 2007-01-18 01:34:14.000000000 +0200 @@ -298,4 +298,11 @@ secfile_insert_str(file, name, "%s.wl_value%d", path_str, i); } + + /* We want to keep savegame in tabular format, so each line has to be + * of equal length. Fill table up to maximum worklist size. */ + for (i = pwl->length ; i < MAX_LEN_WORKLIST; i++) { + secfile_insert_bool(file, false, "%s.wl_is_unit%d", path_str, i); + secfile_insert_str(file, "", "%s.wl_value%d", path_str, i); + } }
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev