URL:
  <http://gna.org/bugs/?18915>

                 Summary: Small Wonders do not show in reports.
                 Project: Freeciv
            Submitted by: None
            Submitted on: Fri Nov  4 05:22:38 2011
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

Playing the multiplayer ruleset small wonders do not show in reports. This
affects both the wonders tab and the top 5 cities tab.

The reason for this is in the file report.c the function is_great_wonder() is
used to find wonders. A corrected method would use is_great_wonder() OR
is_small_wonder()

Example - 

/**************************************************************************
 Returns the number of wonders the given city has.
**************************************************************************/
static int nr_wonders(struct city *pcity)
{
  int result = 0;

  city_built_iterate(pcity, i) {
    if (is_great_wonder(i)) {
      result++;
    }
  } city_built_iterate_end;

  return result;
}




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to