Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8228 in orxonox.OLD for trunk/src/lib/network/player_stats.cc


Ignore:
Timestamp:
Jun 8, 2006, 11:19:08 AM (19 years ago)
Author:
patrick
Message:

trunk: merged the network branche back to trunk with command: svn merge branches/network trunk -r8150:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/player_stats.cc

    r8147 r8228  
    2121#include "player.h"
    2222#include "state.h"
     23#include "shared_network_data.h"
    2324
    2425
     
    8586    this->setPlayableUniqueId( this->playableUniqueId );
    8687   
    87     PRINTF(0)("uniqueID changed %d %d\n", userId, getHostID());
     88    PRINTF(0)("uniqueID changed %d %d %d\n", userId, getHostID(), getUniqueID());
    8889  }
    8990}
     
    99100 
    100101  if ( !list )
     102  {
    101103    return NULL;
     104  }
    102105 
    103106  for ( std::list<BaseObject*>::const_iterator it = list->begin(); it != list->end(); it++ )
     
    108111    }
    109112  }
    110  
    111   //TODO maybe we should create an object here
    112113 
    113114  return NULL;
     
    133134    {
    134135      this->playable = dynamic_cast<Playable*>(*it);
     136      //TODO when OM_PLAYERS is ticked add line:
     137      //this->playable->toList( OM_PLAYERS );
    135138      break;
    136139    }
     
    138141 
    139142  if ( this->playable && userId == getHostID() )
     143  {
    140144    State::getPlayer()->setPlayable( this->playable );
     145  }
    141146 
    142147  this->playableUniqueId = uniqueId;
Note: See TracChangeset for help on using the changeset viewer.