bugGlobulation 2 - Bugs: bug #32212, Flags not working for explorers...

 
 

bug #32212: Flags not working for explorers (patch)

Submitted by:  None
Submitted on:  Sat 22 Jan 2011 05:46:32 PM UTC  
 
Severity: 4 - ImportantStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: mercurialOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 17 Mar 2011 08:44:53 PM UTC, comment #1:

I applied this patch to source. I will take your word for it and assume that this patch fixes it. Thank you very much!!

Jon Neal <reportingsjr>
Project Member
Sat 22 Jan 2011 05:46:32 PM UTC, original submission:

In the mercurial sources, flags don't work for explorers, i.e. you set an "explorer" flag and the explorers just don't want to go there, "too far from flag".

It turns out that this is due to a small problem in src/Building.cpp where the distance is determined via warpDistSquare as the square of the distance, while the distance the unit can cover (timeLeft) is "linear".

The fix is simple, see attachment.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22494:  glob2-explorer-flag.diff added by None (538B - text/x-patch - patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by reportingsjr (Posted a comment)
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Mar 2011 08:44:53 PM UTCreportingsjrSeverity3 - Normal=>4 - Important
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 22 Jan 2011 05:46:32 PM UTCNoneAttached File-=>Added glob2-explorer-flag.diff, #22494

    Back to the top


    Powered by Savane 3.1-cleanup1