Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] (PR#4423) Sea units with base-moverate < 2
Home

[Freeciv-Dev] (PR#4423) Sea units with base-moverate < 2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bart@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#4423) Sea units with base-moverate < 2
From: "Guest" <rt-guest@xxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2003 12:48:59 -0700
Reply-to: rt@xxxxxxxxxxxxxx

At the moment, the minimal moverate of a Sea unit is 2, even though the ruleset 
dictates otherwise. The normal behaviour should be to give units with movement 
< 2 
and < their maximum rate, their maximum rate. I believe this could be fixed 
this way 
(tested with 1.14; sea units with movement 0 or 1 behave correctly now as far 
as I 
can see) 
common/unit.c at line 70: 
- if (move_rate < 2 * SINGLE_MOVE) { 
-     move_rate = 2 * SINGLE_MOVE;  
- } 
+    if (! (move_rate == SINGLE_MOVE && unit_type(punit)->move_rate == 
SINGLE_MOVE) 
+        && (move_rate < 2 * SINGLE_MOVE && unit_type(punit)->move_rate >= 2 * 
SINGLE_MOVE)) { 
+      move_rate = unit_type(punit)->move_rate; 
+    } 
 
Bart Coppens (bart@xxxxxxxxxxxxxx) 


[Prev in Thread] Current Thread [Next in Thread]