Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] patch: initialize all ids in worklist (PR#332)
Home

[Freeciv-Dev] patch: initialize all ids in worklist (PR#332)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: initialize all ids in worklist (PR#332)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Mon, 3 Apr 2000 05:44:02 -0700 (PDT)

I noticed that savegames can contain worklists with "junk values",
like:

  284,136679976,136679944,3904,16,136679992,136679960,3920,16,13
  6680008,136679976,3936,16,136680024,136679992,3952

(especially for AI players?)

This patch hopefully avoids such "junk values" by, in 
init_worklist(), initializing all ids (not just the first).
(Patch not actually tested though...)

-- David

Attachment: init_worklist.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patch: initialize all ids in worklist (PR#332), David Pfitzner <=