diff options
author | rubidium <rubidium@openttd.org> | 2009-05-19 21:20:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-19 21:20:14 +0000 |
commit | 9f4d64bda06a449e2b1c528e342be5bb12a1623b (patch) | |
tree | c7ae21e8a883df20254134a0e155ef468c61fef8 /src/company_cmd.cpp | |
parent | 00bc2659f24b07851291d56d170174ed27581bc7 (diff) | |
download | openttd-9f4d64bda06a449e2b1c528e342be5bb12a1623b.tar.xz |
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 8659a82d2..ef694d8f2 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -722,10 +722,10 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 /* Joining Client: * _local_company: COMPANY_SPECTATOR - * _network_playas/cid = requested company/clientid + * cid = clientid * * Other client(s)/server: - * _local_company/_network_playas: what they play as + * _local_company: what they play as * cid = requested company/company of joining client */ ClientID cid = (ClientID)p2; @@ -744,8 +744,6 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 if (_network_server) { ci->client_playas = COMPANY_SPECTATOR; NetworkUpdateClientInfo(ci->client_id); - } else if (_local_company == COMPANY_SPECTATOR) { - _network_playas = COMPANY_SPECTATOR; } break; } |