Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2000:
[Freeciv-Dev] Re: autotoggle and maxplayers options (PR#593)
Home

[Freeciv-Dev] Re: autotoggle and maxplayers options (PR#593)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: autotoggle and maxplayers options (PR#593)
From: Thue <thue@xxxxxxx>
Date: Sun, 10 Dec 2000 01:24:36 +0100

This introduces a function pointer into the settings struct. If the pointer
is non-NULL the function is called before the value is adjusted. The
function can then make various checks on the value, and in the case of
autotoggle set relevant players on AI.

This code structure is pretty generel, and various things like string
values could use a little checking, so if someone has too much time on
their hands...

-Thue

>If some clients are disconnected, and you switch autotoggle
>from 0 to 1, the clients state remains "disconnected".
>The wished behavior is probably, to switch the clients
>to AI mode.
>
>Christian

Attachment: autotoggle.diff
Description: Binary data


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