bugFreeciv - Bugs: bug #20484, get_virtual_defense_power()...

Show feedback again

bug #20484: get_virtual_defense_power() assuming "TerrainDefense"

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Wed Feb 6 03:29:36 2013  
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Release: Operating System: None
Planned Release: 2.3.5, 2.4.0, 2.5.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue Feb 19 00:53:32 2013, comment #2:

(Committed as r22363, r22364, r22365.)

Jacob Nevins <jtn>
Project Administrator
Thu Feb 7 05:39:45 2013, comment #1:

- Fix a bug that units without "TerrainDefense" didn't get even the constant part (10) of the factor
- Replaced magic 10 with POWER_FACTOR

(file #17153, file #17154)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Wed Feb 6 03:29:36 2013, original submission:

get_virtual_defense_power() always applies terrain defense bonuses, but they should apply to only those unit classes that have "TerrainDefense" flag (land units in classic rulesets).

Fix attached.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.


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

Attach File(s):

Attached Files
file #17153:  VirtTerrainDefense-2.patch added by cazfi (826B - text/x-diff)
file #17140:  VirtTerrainDefense.patch added by cazfi (883B - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by cazfi (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.


    Error: not logged in



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Feb 17 16:34:14 2013cazfiStatusReady For Test=>Fixed
      Assigned toNone=>cazfi
    Sat Feb 9 21:49:47 2013cazfiPlanned Release2.3.4, 2.4.0, 2.5.0=>2.3.5, 2.4.0, 2.5.0
    Thu Feb 7 05:39:45 2013cazfiAttached File-=>Added VirtTerrainDefense-2.patch, #17153
      Attached File-=>Added VirtTerrainDefense-S2_3-2.patch, #17154
    Wed Feb 6 03:29:36 2013cazfiAttached File-=>Added VirtTerrainDefense.patch, #17140
      Attached File-=>Added VirtTerrainDefense-S2_3.patch, #17141
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup