URL:
  <http://gna.org/bugs/?23254>

                 Summary: civ2civ3 city vision increase from Electricity
doesn't affect existing cities
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sun 08 Feb 2015 11:56:21 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: Any
         Planned Release: 2.5.0, 2.6.0, 3.0.0

    _______________________________________________________

Details:

civ2civ3 has tech increasing city vision radius (Electricity). In quick
testing, only cities founded after discovering the tech benefit from the new
tech; old cities continue with old vision range, even after a turn change.

However, after a save/reload, all cities have the increased vision range.

Looks like city_refresh_vision() is the thing to call. It's claimed to be low
overhead.

Currently it's called when things happen to individual cities. I guess we
should also call it for all cities when a new tech is discovered, plus other
likely ruleset effects (new government?), plus a backup where we call it on
every city once a turn to catch other effects.

(Haven't thought about if this should go to S2_4. If it's a easy low-risk
backport, don't see why not.)




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23254>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to