Changeset 7183 for code/trunk
- Timestamp:
- Aug 18, 2010, 7:49:31 PM (14 years ago)
- Location:
- code/trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/network/synchronisable/Synchronisable.cc
r7163 r7183 93 93 syncList_.clear(); 94 94 stringList_.clear(); 95 std::map<uint32_t, Synchronisable*>::iterator it ;96 it = objectMap_.find(objectID_);97 if (it != objectMap_.end())98 objectMap_.erase(it );95 std::map<uint32_t, Synchronisable*>::iterator it2; 96 it2 = objectMap_.find(objectID_); 97 if (it2 != objectMap_.end()) 98 objectMap_.erase(it2); 99 99 100 100 } -
code/trunk/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
r7163 r7183 54 54 55 55 this->setMunitionName("TargetSeeking Rockets"); 56 this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4 );56 this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4f); 57 57 // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning) 58 58 } -
code/trunk/src/orxonox/ChatInputHandler.cc
r7163 r7183 129 129 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 130 130 assert( this->text_colors[ i ] ); 131 green += 0.2 , blue += 0.2;131 green += 0.2f, blue += 0.2f; 132 132 } 133 133 … … 137 137 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 138 138 assert( this->text_colors[ i ] ); 139 red += 0.2 , blue += 0.2;139 red += 0.2f, blue += 0.2f; 140 140 } 141 141 … … 145 145 { this->text_colors[ i ] = new CEGUI::colour( red, green, blue ); 146 146 assert( this->text_colors[ i ] ); 147 red += 0.2 , green += 0.2;147 red += 0.2f, green += 0.2f; 148 148 } 149 149 } … … 275 275 { 276 276 /* adjust curser position - magic number 5 for font width */ 277 sub_adjust_dispoffset( ( this->input->getUnclippedInnerRect().getWidth()/6),277 sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().getWidth()/6), 278 278 cursorpos, assembled.length() ); 279 279 this->input->setProperty( "Text", assembled.substr( disp_offset ) ); … … 282 282 { 283 283 /* adjust curser position - magic number 5 for font width */ 284 sub_adjust_dispoffset( ( this->inputonly->getUnclippedInnerRect().getWidth()/6),284 sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().getWidth()/6), 285 285 cursorpos, assembled.length() ); 286 286 this->inputonly->setProperty( "Text", assembled.substr( disp_offset) ); -
code/trunk/src/orxonox/controllers/ArtificialController.cc
r7163 r7183 498 498 { 499 499 pos = Vector3::ZERO; 500 if (i <= 1) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::LEFT);501 if (i == 2) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::RIGHT);502 if (i == 3) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::UP);500 if (i <= 1) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::LEFT); 501 if (i == 2) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::RIGHT); 502 if (i == 3) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::UP); 503 503 if (i >= 4) 504 504 { 505 pos += dest + FORMATION_WIDTH*(orient*WorldEntity::DOWN);505 pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::DOWN); 506 506 i = 1; 507 dest += FORMATION_LENGTH*(orient*WorldEntity::BACK);507 dest += (float)FORMATION_LENGTH*(orient*WorldEntity::BACK); 508 508 (*it)->setTargetPosition(pos); 509 509 continue; -
code/trunk/src/orxonox/graphics/MeshLodInformation.cc
r7163 r7183 41 41 42 42 MeshLodInformation::MeshLodInformation(BaseObject* creator) 43 : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15 )43 : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15f) 44 44 { 45 45 RegisterObject(MeshLodInformation); -
code/trunk/src/orxonox/graphics/Model.cc
r7166 r7183 44 44 45 45 Model::Model(BaseObject* creator) : 46 StaticEntity(creator), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15 )46 StaticEntity(creator), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15f) 47 47 { 48 48 RegisterObject(Model); -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r7163 r7183 222 222 223 223 // Remove the WeaponPack from the WeaponSystem 224 std::vector<WeaponPack*>::iterator it = std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(), wPack);225 assert(it !=this->weaponPacks_.end());226 this->weaponPacks_.erase(it );224 std::vector<WeaponPack*>::iterator it2 = std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(), wPack); 225 assert(it2 !=this->weaponPacks_.end()); 226 this->weaponPacks_.erase(it2); 227 227 } 228 228 -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc
r7163 r7183 171 171 172 172 Radian pitch = this->cameraPositionRootNode_->getOrientation().getPitch(); 173 if (pitch < Radian(1.5707 ) && pitch > Radian(-1.5707))173 if (pitch < Radian(1.5707f) && pitch > Radian(-1.5707f)) 174 174 { 175 175 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 176 176 } 177 else if (pitch < Radian(-1.5707 ))177 else if (pitch < Radian(-1.5707f)) 178 178 { 179 if (this->pitch_ > 0.0 )179 if (this->pitch_ > 0.0f) 180 180 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 181 else if (pitch < Radian(-1.571 ))182 this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796 ));181 else if (pitch < Radian(-1.571f)) 182 this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796f)); 183 183 } 184 else if (pitch > Radian(1.5707 ))184 else if (pitch > Radian(1.5707f)) 185 185 { 186 if (this->pitch_ < 0.0 )186 if (this->pitch_ < 0.0f) 187 187 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 188 else if (pitch > Radian(1.571 ))189 this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796 ));188 else if (pitch > Radian(1.571f)) 189 this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796f)); 190 190 } 191 191 this->weaponNode_->setOrientation(this->cameraPositionRootNode_->getOrientation());
Note: See TracChangeset
for help on using the changeset viewer.