Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] (PR#4607) Paratrooper move rate magic numbers
Home

[Freeciv-Dev] (PR#4607) Paratrooper move rate magic numbers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4607) Paratrooper move rate magic numbers
From: "Ben Webb" <ben@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jul 2003 06:55:11 -0700
Reply-to: rt@xxxxxxxxxxxxxx

The attached micro-patch replaces a couple of instances of the magic
number 3 with the SINGLE_MOVE define, when reading in paratrooper move
rates from units.ruleset.

        Ben
-- 
ben@xxxxxxxxxxxxxxxxxxxxxx         http://bellatrix.pcl.ox.ac.uk/~ben/
"If we don't succeed, we run the risk of failure."
         - J. Danforth Quayle

diff -Nur -Xfreecivdiff.ignore freeciv-cvs/server/ruleset.c 
freeciv-patched/server/ruleset.c
--- freeciv-cvs/server/ruleset.c        2003-07-18 13:40:05.000000000 +0100
+++ freeciv-patched/server/ruleset.c    2003-07-18 14:36:30.000000000 +0100
@@ -786,9 +786,9 @@
       if(ival == F_PARATROOPERS) {
         u->paratroopers_range = secfile_lookup_int(file,
             "%s.paratroopers_range", sec[i]);
-        u->paratroopers_mr_req = 3*secfile_lookup_int(file,
+        u->paratroopers_mr_req = SINGLE_MOVE * secfile_lookup_int(file,
             "%s.paratroopers_mr_req", sec[i]);
-        u->paratroopers_mr_sub = 3*secfile_lookup_int(file,
+        u->paratroopers_mr_sub = SINGLE_MOVE * secfile_lookup_int(file,
             "%s.paratroopers_mr_sub", sec[i]);
       } else {
         u->paratroopers_range = 0;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#4607) Paratrooper move rate magic numbers, Ben Webb <=