[freeciv-ai] Re: aiair uses set_unit_activity() directly
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 30 Aug 2004, Jason Dorje Short wrote:
> One idea is to change code in the handle_* functions from
>
> if (!normalize_map_pos(&x, &y)) return;
>
> to
>
> if (!normalize_map_pos(&x, &y)) {
> assert(pplayer->conn != NULL);
> return;
> }
Maybe it's easier to pass bool force_sanity to handle_* functions and do
if (!normalize_map_pos(&x, &y)) {
assert(!force_sanity);
return;
}
But also would be better to separate all sanity checks into separate
functions in common so AI and server and client can use them
|
|