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

                 Summary: Mapgen assert fails if ruleset has no unit with role
requested first in startunits
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sun 01 Jul 2012 05:42:05 PM EEST
                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:

If startunits start with a role for which there is no unit in ruleset, result
is mystic assert failure in map generation. Either we should work around (use
next unit in startunits for selecting startposition) or at the very least give
more sensible error message.

srv_main.c:2467- happily passes NULL initial_unit to map_fractal_generate():

struct unit_type *utype = crole_to_unit_type(game.server.start_units[0],
NULL);

for (i = 0; !created && i < max ; i++) {
  created = map_fractal_generate(TRUE, utype);




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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