Summary: unit.c::is_square_threatened() uses H_MAP instead of
                 Project: Freeciv
            Submitted by: None
            Submitted on: Wed 27 Mar 2013 08:32:50 AM UTC
                Category: general
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: per...@shipstone.jp
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



    When an AI is checking nearby tiles to determine if they might contain
threatening units, the test to see if the AI can really see the units should
depend on H_FOG (whether the AI is affected by fog-of-war), rather than H_MAP
(whether the AI has once seen all tiles).  The current caller is
only autosettlers.c, and there exist no current AI_LEVELs for which H_MAP is
defined and H_FOG is not defined, so this has absolutely no impact on gameplay
by default, but it could be considered good cleanup in the event anyone does
enough plumbing to safely allow dynamic AI_LEVELs.


File Attachments:

Date: Wed 27 Mar 2013 08:32:50 AM UTC  Name: square-threatened-handicap.patch 
Size: 965B   By: None



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to