Follow-up Comment #9, bug #15450 (project freeciv):

new generation of savename; from the patch


/**************************************************************************
  Generate a default save file name and place it in the provided buffer.
  The name will be of the form
  '<prefix>-[T]-[Y][-R]' where:

    [T]      = 'T<game.info.turn>'
    [Y]      = 'Y<game.info.year><suffix>'
    [R]      = '<reason>'
    [-R]     = '-<reason>'

    <prefix> = game.save_name
    <turn>   = game.info.turn (zero padded to 3 places)
    <year>   = game.info.year 
    <suffix> = 'BC' or 'AD' for negative or positive year resp.
    <reason> = save reason if not normal save

  Returns the number of characters written, or the number of characters
  that would have been written if truncation occurs.

  NB: If you change the format definition, be sure to update the above
      function comment and the help text for the 'savename' setting.
**************************************************************************/


depends on patch #1490

(file #8318)
    _______________________________________________________

Additional Item Attachment:

File name: 20100228-trunk-new-generation-of-savename.patch Size:10 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15450>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to