URL:
<http://gna.org/bugs/?20971>
Summary: Martial_Law_Max has no effect
Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 15 Jul 2013 09:29:04 PM EEST
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release: 2.4.0, 2.5.0, 2.6.0
_______________________________________________________
Details:
All military units increase Martial Law (as long as there's Martial_Law_Each
effect active), Martial_Law_Max effect is ignored.
Reason is that when units are iterated, max is compared to variable that is
not updated yet in that loop (and later has, in fact, value multiplied by
martial_law_each) and thus is always 0 no matter how many units already are
counted toward Martial Law.
Fix attached
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 15 Jul 2013 09:29:04 PM EEST Name: MartialLawMax.patch Size: 588B
By: cazfi
<http://gna.org/bugs/download.php?file_id=18284>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20971>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev