Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] (PR#13216) shortcoming of /debug command
Home

[Freeciv-Dev] (PR#13216) shortcoming of /debug command

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13216) shortcoming of /debug command
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 7 Jun 2005 09:13:03 -0700
Reply-to: bugs@xxxxxxxxxxx

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

There are two ways to implement it, but both would require a fair bit of
code.

One would be to use a separate hash for debug data.  Then instead of
looking at punit->debug you'd look at
hash_lookup_unit_metadata(punit->id)->debug.

The other would be to have a list of units to be debugged.  This list
would include all the IDs of debugged units.  punit->debug can be kept
around so when a unit is built it's moved off of the list and ->debug is
set.

-jason




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