Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2006, 5:36:03 PM (18 years ago)
Author:
rennerc
Message:

new NetworkGameManager

File:
1 edited

Legend:

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

    r7974 r7984  
    1818#include "class_list.h"
    1919#include "src/lib/util/loading/factory.h"
     20
     21#include "player.h"
     22#include "state.h"
    2023
    2124
     
    4548
    4649  this->userId = 0;
    47   this->groupId = 0;
     50  this->teamId = 0;
    4851  this->score = 0;
    4952  this->playableClassId = 0;
     
    5154 
    5255  userId_handle = registerVarId( new SynchronizeableInt( &userId, &userId, "userId" ) );
    53   groupId_handle = registerVarId( new SynchronizeableInt( &groupId, &groupId, "groupId" ) );
     56  groupId_handle = registerVarId( new SynchronizeableInt( &teamId, &teamId, "teamId" ) );
    5457  score_handle = registerVarId( new SynchronizeableInt( &score, &score, "score" ) );
    5558  playableClassId_handle = registerVarId( new SynchronizeableInt( &playableClassId, &playableClassId, "playableClassId") );
     
    7780  {
    7881    this->setPlayableUniqueId( this->playableUniqueId );
     82   
     83    if ( userId == getHostID() )
     84      State::getPlayer()->setPlayable( getPlayable() );
    7985  }
    8086}
Note: See TracChangeset for help on using the changeset viewer.