[Freeciv-Dev] Re: autotoggle and maxplayers options (PR#593)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
autotoggle.diff
Description: Binary data
- [Freeciv-Dev] Re: autotoggle and maxplayers options (PR#593),
Thue <=
|
|