14 #include "../stdafx.h" 
   18 #include "../command_func.h" 
   19 #include "../company_func.h" 
   20 #include "../settings_type.h" 
   22 #include "../safeguards.h" 
   30    CcPlaySound_SPLAT_WATER,
 
   39    CcPlaySound_EXPLOSION,
 
   40    CcPlaySound_SPLAT_OTHER,
 
   41    CcPlaySound_SPLAT_RAIL,
 
   66   if (this->
first == NULL) {
 
   93     if (ret == this->
last) this->
last = prev_item;
 
  119   while ((cp = this->
Pop()) != NULL) {
 
  122   assert(this->
count == 0);
 
  164     _local_wait_queue.
Append(&c);
 
  188     cs->outgoing_queue.Append(&c);
 
  202   while ((cp = queue.
Peek()) != NULL) {
 
  205     if (_frame_counter < cp->frame) 
break;
 
  210       error(
"[net] Trying to execute a packet in the past!");
 
  231   _local_wait_queue.
Free();
 
  232   _local_execution_queue.
Free();
 
  245   NetworkClientSocket *cs;
 
  247     if (cs->status >= NetworkClientSocket::STATUS_MAP) {
 
  250       cp.
callback = (cs != owner) ? NULL : callback;
 
  251       cp.
my_cmd = (cs == owner);
 
  252       cs->outgoing_queue.Append(&cp);
 
  256   cp.
callback = (cs != owner) ? NULL : callback;
 
  257   cp.
my_cmd = (cs == owner);
 
  258   _local_execution_queue.
Append(&cp);
 
  268 #ifdef DEBUG_DUMP_COMMANDS 
  270   int to_go = UINT16_MAX;
 
  276   while (--to_go >= 0 && (cp = queue->
Pop(
true)) != NULL) {
 
  290   NetworkClientSocket *cs;
 
  342     DEBUG(net, 0, 
"Unknown callback. (Pointer: %p) No callback sent", cp->
callback);