[Freeciv-Dev] (PR#13216) shortcoming of /debug command
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|