Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9575 in orxonox.OLD for branches/proxy


Ignore:
Timestamp:
Jul 28, 2006, 5:20:02 PM (18 years ago)
Author:
patrick
Message:

better debug output now

Location:
branches/proxy/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.cc

    r9574 r9575  
    601601                 SharedNetworkData::getInstance()->isUserMasterServer(it->second.userId))
    602602            {
    603               PRINTF(0)("Handshake: i am in client role\n");
     603              PRINTF(4)("Handshake: i am in client role\n");
    604604
    605605              SharedNetworkData::getInstance()->setHostID( it->second.handshake->getHostId() );
     
    656656              else if ( SharedNetworkData::getInstance()->isProxyServerActive() && it->second.isClient() )
    657657              {
    658                 PRINTF(0)("Handshake: Proxy in server role: connecting %i\n", it->second.userId);
     658                PRINTF(4)("Handshake: Proxy in server role: connecting %i\n", it->second.userId);
    659659
    660660                it->second.ip = it->second.socket->getRemoteAddress();
  • branches/proxy/src/lib/network/player_stats.cc

    r9574 r9575  
    7676  MessageManager::getInstance()->registerMessageHandler( MSGID_CHANGENICKNAME, changeNickHandler, NULL );
    7777
    78   PRINTF(0)("PlayerStats created\n");
     78  PRINTF(5)("PlayerStats created\n");
    7979}
    8080
     
    9898    this->setPlayableUniqueId( this->playableUniqueId );
    9999
    100     PRINTF(0)("uniqueID changed %d %d %d\n", assignedUserId, SharedNetworkData::getInstance()->getHostID(), getUniqueID());
     100    PRINTF(4)("uniqueID changed %d %d %d\n", assignedUserId, SharedNetworkData::getInstance()->getHostID(), getUniqueID());
    101101  }
    102102
     
    150150void PlayerStats::setPlayableUniqueId( int uniqueId )
    151151{
    152   PRINTF(0)("set playable unique id %i\n", uniqueId);
    153152  const std::list<BaseObject*> * list = ClassList::getList( CL_PLAYABLE );
    154153
  • branches/proxy/src/util/multiplayer_team_deathmatch.cc

    r9574 r9575  
    138138  if ( currentGameState == GAMESTATE_PRE_GAME || currentGameState == GAMESTATE_GAME )
    139139  {
    140     if( !PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() ))
    141       PRINTF(0)("got no stats\n");
    142 
    143140    if ( PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() ) &&
    144141         box == NULL &&
     
    203200     )
    204201  {
    205     // this is actualy good
    206 //     assert(false);
    207 
    208202    delete box;
    209203    box = NULL;
     
    595589    if ( this->statsBox && !this->bLocalPlayerDead && event.bPressed )
    596590    {
    597       PRINTF(0)("hide stats\n");
     591      PRINTF(5)("hide stats\n");
    598592      this->hideStats();
    599593    }
    600594    else if ( !this->statsBox && event.bPressed )
    601595    {
    602       PRINTF(0)("show stats\n");
     596      PRINTF(5)("show stats\n");
    603597      this->showStats();
    604598    }
Note: See TracChangeset for help on using the changeset viewer.