/[pkgs]/devel/8Kingdoms/8Kingdoms-1.1.0-divide-by-zero.patch
ViewVC logotype

Contents of /devel/8Kingdoms/8Kingdoms-1.1.0-divide-by-zero.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Jan 4 20:05:23 2008 UTC (22 months, 2 weeks ago) by jwrdegoede
Branch: MAIN
CVS Tags: Kingdoms-1_1_0-6_fc9, Kingdoms-1_1_0-5_fc9, F-10-split, Kingdoms-1_1_0-7_fc11, Kingdoms-1_1_0-4_fc9, F-9-split, HEAD
File MIME type: text/x-patch
* Fri Jan  4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-4
- Fix divide by zero abort (bz 427485)
- Backport various fixes from CVS
- Note this still won't work with tcl 8.5, this release is just to keep
  rawhide in sync with F-8 / F-7
1 diff -up ./res/xml/scripts/unit_recruit_elite.xml~ ./res/xml/scripts/unit_recruit_elite.xml
2 --- ./res/xml/scripts/unit_recruit_elite.xml~ 2008-01-04 20:07:15.000000000 +0100
3 +++ ./res/xml/scripts/unit_recruit_elite.xml 2008-01-04 20:07:15.000000000 +0100
4 @@ -60,7 +60,7 @@
5 # pomocna promenna pro uchovani poctu zbyvajicich zivotu
6 set missing_lives [expr $max_lives - $unit(lives)];
7
8 - if {$unit_types($unit(type), cure_cost) > 0} {
9 + if {($unit_types($unit(type), cure_cost) > 0) && ($unit(level) > 0)} {
10 # pomocna promenna pro uchovani maximalniho poctu zivotu, na ktere
11 # ma hrac penize
12 set money [expr floor($player(money) / ($unit(level) * $unit_types($unit(type), cure_cost)))];

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2