URL:
  <http://gna.org/patch/?4289>

                 Summary: Make sure AI does not consider effect with amount ==
0 (no effect) positive thing
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 30 Oct 2013 12:38:44 PM EET
                Category: ai
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.1, 2.5.0, 2.6.0

    _______________________________________________________

Details:

Shortcut effect value evaluation to return 0 if amount of the effect is 0.
Old code often does not check if amount > 0, but just assumes so. If any
ruleset has such effects (probably just as means to temporarily disable them
for testing), it would assign them positive value (equal to having amount ==
1).




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 30 Oct 2013 12:38:44 PM EET  Name: 0AmountEft.patch  Size: 858B  
By: cazfi

<http://gna.org/patch/download.php?file_id=19293>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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