Mercurial > hg > openttd
changeset 13535:3c19133cac6f draft
(svn r18056) -Fix (r17737): compiling without networking failed
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 12 Nov 2009 21:08:41 +0000 |
parents | 84977eed16e4 |
children | 7ec81219f539 |
files | src/company_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -89,8 +89,10 @@ /* company could also be COMPANY_SPECTATOR or OWNER_NONE */ assert(Company::IsValidID(new_company) || new_company == COMPANY_SPECTATOR || new_company == OWNER_NONE); +#ifdef ENABLE_NETWORK /* Delete the chat window, if you were team chatting. */ InvalidateWindowData(WC_SEND_NETWORK_MSG, DESTTYPE_TEAM, _local_company); +#endif _local_company = new_company;