patchFreeciv - Patches: patch #3867, Drop map_move_cost_ai()

 
 
Show feedback again

patch #3867: Drop map_move_cost_ai()

Submitted by:  Emmet Hikory <persia>
Submitted on:  Mon 22 Apr 2013 12:26:18 AM UTC  
 
Category: generalPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
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.

 

Tue 30 Apr 2013 09:22:57 PM UTC, SVN revision 22797:

Dropped obsolete map_move_cost_ai().

Patch by Emmet Hikory

See patch #3867

(Browse SVN revision 22797)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon 22 Apr 2013 12:26:18 AM UTC, original submission:

This function checked for moves involving sea tiles, but otherwise behaved precisely like map_move_cost(). The only remaining caller (aiferry.c:combined_land_sea_move()) contains parallel logic ensuring that map_move_cost_ai was never called with either source or destination as an ocean tile. As a result, it is safe for combined_land_sea_move() to call map_move_cost() directly, so this function may be removed.

Emmet Hikory <persia>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #17799:  drop-map_move_cost_ai.patch added by persia (4kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cazfi (Updated the item)
  • -unavailable- added by persia (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 30 Apr 2013 09:23:07 PM UTCcazfiStatusReady For Test=>Done
      Open/ClosedOpen=>Closed
    Sat 27 Apr 2013 11:40:22 PM UTCcazfiStatusNone=>Ready For Test
      Assigned toNone=>cazfi
      Planned Release=>2.5.0
    Mon 22 Apr 2013 12:26:18 AM UTCpersiaAttached File-=>Added drop-map_move_cost_ai.patch, #17799
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup