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:
* "All"
* "Global observers"
* "011000010" _A suite of players able to see that, got with_:

char target[256];
char *p = target;

players_iterate(pplayer) {
  *p++ = (BV_ISSET(pdata->target), player_index(pplayer))
          ? '1' : '0');
} players_iterate_end;
*p = '\0'


To learn how use bit vectors, you can look at utility/shared.h.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1352>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to