[Freeciv-Dev] (PR#18481) can_attack_non_native()
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#18481) can_attack_non_native() |
From: |
"Marko Lindqvist" <cazfi74@xxxxxxxxx> |
Date: |
Mon, 10 Jul 2006 16:55:28 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18481 >
Land units cannot attack ocean tiles. Sea units can attack land tiles.
That is, some units are able to attack !is_native_terrain() tiles,
others are not. First step to separate this behavior from move_type is
to create function
bool can_attack_non_native(struct unit_type *utype)
and to add calls to it where necessary. In its first incarnation
function should just compare move_type to SEA_MOVING.
- ML
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#18481) can_attack_non_native(),
Marko Lindqvist <=
|
|