patchFreeciv - Patches: patch #4289, Make sure AI does not consider...

 
 
Show feedback again

patch #4289: Make sure AI does not consider effect with amount == 0 (no effect) positive thing

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Wed Oct 30 10:38:44 2013  
 
Category: aiPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.4.1, 2.5.0, 2.6.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun Nov 10 23:02:21 2013, SVN revision 23714:

Shortcut AI's effect value evaluation to return 0 if amount of the effect is 0.

See patch #4289

(Browse SVN revision 23714)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sun Nov 10 23:02:16 2013, SVN revision 23713:

Shortcut AI's effect value evaluation to return 0 if amount of the effect is 0.

See patch #4289

(Browse SVN revision 23713)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sun Nov 10 23:02:11 2013, SVN revision 23712:

Shortcut AI's effect value evaluation to return 0 if amount of the effect is 0.

See patch #4289

(Browse SVN revision 23712)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Wed Oct 30 10:38:44 2013, original submission:

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).

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #19293:  0AmountEft.patch added by cazfi (858B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Error: not logged in

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 10 23:02:33 2013cazfiStatusReady For Test=>Done
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Wed Oct 30 10:38:44 2013cazfiAttached File-=>Added 0AmountEft.patch, #19293
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup