Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9119 in orxonox.OLD for branches/presentation/src/util


Ignore:
Timestamp:
Jul 4, 2006, 1:35:11 PM (19 years ago)
Author:
rennerc
Message:

added scling for playables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/util/multiplayer_team_deathmatch.cc

    r9117 r9119  
    456456  std::string playableModel = getPlayableModelFileName( userId, stats.getPreferedTeamId(), playableClassId );
    457457  std::string playableTexture = getPlayableModelTextureFileName( userId, stats.getPreferedTeamId(), playableClassId );
     458  float       playableScale = getPlayableScale( userId, stats.getPreferedTeamId(), playableClassId );
    458459
    459460  BaseObject * bo = Factory::fabricate( playableClassId );
     
    464465  Playable & playable = *(dynamic_cast<Playable*>(bo));
    465466
    466   if ( playableTexture != "" )
    467     playable.loadMD2Texture( playableTexture );
    468   if ( playableModel != "" )
    469     playable.loadModel( playableModel );
     467  playable.loadMD2Texture( playableTexture );
     468  playable.loadModel( playableModel, playableScale );
    470469  playable.setOwner( userId );
    471470  playable.setUniqueID( SharedNetworkData::getInstance()->getNewUniqueID() );
Note: See TracChangeset for help on using the changeset viewer.