Follow-up Comment #1, patch #1352 (project freeciv):
I don't like saving enum as integers, it makes big compatibility problems for
save games. They should be saved as strings with function accessors. Maybe
it's time to apply patch #1309 to simplify that?
"target_type" and "target" could be merged into:
* "Global observers"
* "011000010" _A suite of players able to see that, got with_:
char *p = target;
*p++ = (BV_ISSET(pdata->target), player_index(pplayer))
? '1' : '0');
*p = '\0'
To learn how use bit vectors, you can look at utility/shared.h.
Reply to this item at:
Message posté via/par Gna!
Freeciv-dev mailing list