bugFreeciv - Bugs: bug #20546, Autosettler evaluates road bonus...

 
 
Show feedback again

bug #20546: Autosettler evaluates road bonus of the road being built as one of the old road

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Thu 21 Feb 2013 07:42:25 AM UTC  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Release: Operating System: None
Planned Release: 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 25 Feb 2013 04:31:21 PM UTC, SVN revision 22440:

Get move bonus from old roads correctly when evaluating how much
better new road would be.

See bug #20546

(Browse SVN revision 22440)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Thu 21 Feb 2013 07:42:25 AM UTC, original submission:

For evaluating move bonus improvements of building new road autosettler needs to figure out old move bonus (e.g., when it considers building Railroad and there already is Road). There it mistakenly uses move bonus of the road being considered for building instead of the move bonus of the existing road.

Fix attached.

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 #17301:  OldRoad.patch added by cazfi (962B - 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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Feb 2013 04:31:32 PM UTCcazfiStatusReady For Test=>Fixed
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Thu 21 Feb 2013 07:49:26 AM UTCcazfiSummaryAutosettler evaluates old road bonus as one of the road being built=>Autosettler evaluates road bonus of the road being built as one of the old road
    Thu 21 Feb 2013 07:42:25 AM UTCcazfiAttached File-=>Added OldRoad.patch, #17301
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup