23 ClientPtr clt = this->getClientFromSerial( target );
29 clt = this->getClientFromSerial( oldtarget );
33 clt = this->getClientFromSerial( serial );
34 if (clt && clt->netversion < 4951) {
57 netbuf.
addInt32( weapon_indicies.size() );
58 for (
unsigned int i = 0;
i < weapon_indicies.size();
i++)
71 const vector< int > &weapon_indicies,
82 netbuf.
addInt32( weapon_indicies.size() );
83 for (
unsigned int i = 0;
i < weapon_indicies.size();
i++)
96 const std::string &cargo,
101 unsigned int quantity,
104 unsigned short zone )
120 netbuf.
addInt32( (
unsigned int) (mountOffset) );
121 netbuf.
addInt32( (
unsigned int) (subunitOffset) );
135 ClientPtr clt = this->getClientFromSerial( serial );
145 unsigned int numCargo = un->
numCargo();
146 if (!numCargo)
return;
152 for (
unsigned int i = 0;
i < numCargo;
i++) {
164 ClientPtr clt = this->getClientFromSerial( cltser );
183 const string *strValue,
184 const float *floatValue )
196 if (*key ==
"active_scripts" || *key ==
"mission_scripts")
207 if ( (type&Subcmd::StringValue) || (type&Subcmd::Objective) )
209 if ( (type&Subcmd::FloatValue) || (type&Subcmd::Objective) )
247 static float mintime =
249 if (lastserial != serial || curtime-timestamp > mintime) {
281 fprintf( stderr,
"Attempt to sendCustom NULL player %d ; CMD %s %s ; ID %s\n",
282 cp, command.c_str(), args.c_str(),
id.c_str() );
292 NULL, clt->tcp_sock, __FILE__, __LINE__ );
302 const char*tostr( to.c_str() );
305 sscanf( tostr+1,
"%d", &playerto );
306 if ( playerto != -1 && (
unsigned int) playerto < _Universe->numPlayers() ) {
320 if (to ==
"broadcast") {
321 for (ZoneMap::const_iterator iter =
zonemgr->
zones.begin();
374 ClientPtr clt = this->getClientFromSerial( serial );
376 un = clt->game_unit.GetUnit();
414 logoutList.push_back( clt );
424 if ( waitList.find( clt->callsign ) != waitList.end() )
427 std::string fn = dststr;
439 std::string::size_type where = savestr.find(
"^" );
441 if (where != std::string::npos)
442 if ( dststr != savestr.substr( 0, where ) )
443 savestr = dststr+savestr.substr( where );
450 entry.type = WaitListEntry::JUMPING;
453 waitList[clt->callsign] = entry;
509 ClientPtr clt = this->getClientFromSerial( serial );
511 cerr<<
"Client "<<serial<<
" for dock autorization is NULL."<<endl;
514 Unit *un = clt->game_unit.GetUnit();
534 clt->clearLatestTimestamp();
544 Unit *un = clt->game_unit.GetUnit();
551 if (clt->netversion < 4951)
562 ClientPtr clt = this->getClientFromSerial( serial );
564 cerr<<
"Client "<<serial<<
" for dock autorization is NULL."<<endl;
567 Unit *un = clt->game_unit.GetUnit();
585 if (!autolanding_enable)