UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4688 FindHidingLocation -> Manhattan distance search
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "WON'T FIX".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Time spent
    55 weeks, 400 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    WON'T FIX
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/561 Item 561] imported from sourceforge.net tracker on 2013-01-28 20:43:43

Candidate patch to r31050 --

Simple change to g_ai.c/AI_FindHdingLocation which changes the search pattern from a row-by-row search of a grid, to checking a series of increasingly large diamonds (i.e. search order is in increasing Manhattan distance), in order to reduce the directional bias and increase the likelihood of finding nearby cover (and thus leaving more TUs for crouching, reaction fire, et al). The search remains as deterministic as it was before.

Code builds with this patch; unsure of what exists for systematic testing of efficacy.

Code is marginally more complicated, but it should not have a significant increase in computational cost.
===== Comments Ported from Sourceforge =====

====== *anonymous (2010-07-23 05:28:29) ======

Output of 'svn diff'.
====== tlh2000 (2011-08-26 20:45:27) ======

updated version against latest master
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif