~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/network/network_server.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman
  • Date: 2009-06-09 21:46:28 UTC
  • mfrom: (1.1.7 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090609214628-6z5uodi6178z050l
[ Matthijs Kooijman ]
* New upstream release.
* Link against libicu to enable right-to-left language support. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: network_server.cpp 15904 2009-03-30 23:22:13Z rubidium $ */
 
1
/* $Id: network_server.cpp 16245 2009-05-06 22:21:32Z rubidium $ */
2
2
 
3
3
/** @file network_server.cpp Server part of the network protocol. */
4
4
 
1235
1235
 
1236
1236
        /* Check if the company is valid */
1237
1237
        if (!IsValidCompanyID(company_id) && company_id != COMPANY_SPECTATOR) return;
 
1238
        /* We don't allow moving to AI companies */
 
1239
        if (company_id != COMPANY_SPECTATOR && GetCompany(company_id)->is_ai) return;
1238
1240
 
1239
1241
        /* Check if we require a password for this company */
1240
1242
        if (company_id != COMPANY_SPECTATOR && !StrEmpty(_network_company_states[company_id].password)) {
1344
1346
        for (int i = 0; i < NETWORK_STATION_TYPES; i++) {
1345
1347
                p->Send_uint16(stats->num_station[i]);
1346
1348
        }
 
1349
 
 
1350
        p->Send_bool(c->is_ai);
1347
1351
}
1348
1352
 
1349
1353
/**