[Freeciv-Dev] Re: [Patch] Fortress with enhanced vision (watchtower-like
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, Aug 25, 2001 at 09:31:26PM +0200, Erik Sigra wrote:
> lördagen den 25 augusti 2001 17:59 skrev du:
> > return max(base_vision,
> > max(watchtower_vision, base_vision+watchtower_extra_vision));
>
> I assume the variables here are all positive. Then one max call is enough.
Ack. However an extra assert doesn't harm.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
What's nice about GUI is that you see what you manipulate.
What's bad about GUI is that you can only manipulate what you see.
[Freeciv-Dev] Re: [Patch] Fortress with enhanced vision (watchtower-like), Ross W. Wetmore, 2001/08/25
[Freeciv-Dev] Re: [Patch] Fortress with enhanced vision (watchtower-like), Gregory Berkolaiko, 2001/08/26
|
|