Changeset 9117 in orxonox.OLD for branches/presentation/src/lib/network
- Timestamp:
- Jul 4, 2006, 1:21:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/network/network_game_manager.cc
r9116 r9117 101 101 std::string playableModel = rules.getPlayableModelFileName( userId, team, playableClassId ); 102 102 std::string playableTexture = rules.getPlayableModelFileName( userId, team, playableClassId ); 103 float playableScale = rules.getPlayableScale( userId, team, playableClassId ); 103 104 104 105 BaseObject * bo = Factory::fabricate( playableClassId ); … … 109 110 Playable & playable = *(dynamic_cast<Playable*>(bo)); 110 111 111 if ( playableTexture != "" ) 112 playable.loadMD2Texture( playableTexture ); 113 if ( playableModel != "" ) 114 playable.loadModel( playableModel ); 112 playable.loadMD2Texture( playableTexture ); 113 114 playable.loadModel( playableModel, playableScale ); 115 115 playable.setOwner( userId ); 116 116 playable.setUniqueID( SharedNetworkData::getInstance()->getNewUniqueID() );
Note: See TracChangeset
for help on using the changeset viewer.