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

                 Summary: xaw: Spy cannot sabotage first improvement in
ruleset (e.g. Airport)
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Thu Jan 30 01:13:45 2014
                Category: client-xaw
                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:

gui-xaw/diplomat_dialog.c:spy_sabotage_callback():


  if(!sabotage_improvement){
    log_error("Bug in spy sabotage code");
    process_diplomat_arrival(NULL, 0);
    return;
  }


However, sabotage_improvement is an Impr_type_id, and 0 is a valid value. In
the default ruleset it corresponds to the Airport. I've verified
experimentally that sabotaging the Airport is thus impossible.

(Other valid values in this context include -1 and B_LAST=200.)




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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