[Freeciv-Dev] Re: (PR#4423) Sea units with base-moverate < 2
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 18 Jun 2003, Guest wrote:
> 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
Will this do?
- if (move_rate < 2 * SINGLE_MOVE) {
+ if (unit_type(punit)->move_rate >= 2 && move_rate < 2 * SINGLE_MOVE) {
move_rate = 2 * SINGLE_MOVE;
}
break;
- Per
|
|