diff options
author | truelight <truelight@openttd.org> | 2004-12-16 13:59:23 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-16 13:59:23 +0000 |
commit | 5e28fb8f97f7f57be4f62676fd96bd7b97103419 (patch) | |
tree | 4e45f952d8f16c9ddc3ac358df5ad8668d9a599a /players.c | |
parent | 89fd12692f1999b1535d70589bab7366a9eee0f3 (diff) | |
download | openttd-5e28fb8f97f7f57be4f62676fd96bd7b97103419.tar.xz |
(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set autoclean_companies on/off').
When enabled, empty companies (companies with no active clients) with no
password are declared bankrupt after 1 year of emptyness.
For empty companies with password, the password is removed after 3 years
of emptyness.
The delay of removing company/password can be configured via:
- 'set autoclean_protected <months>'
- 'set autoclean_unprotected <months>'
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -665,6 +665,8 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2) NetworkUpdateClientInfo(ci->client_index); if (ci->client_playas != 0 && ci->client_playas <= MAX_PLAYERS) { + _network_player_info[p->index].months_empty = 0; + memcpy(_decode_parameters, ci->client_name, 32); /* XXX - What are the consequents of this? It is needed, but is it bad? */ _docommand_recursive = 0; |