Changeset 6394 for code/branches/presentation2/src/orxonox/worldentities
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/worldentities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/worldentities/ControllableEntity.cc
r6387 r6394 333 333 this->camera_ = new Camera(this); 334 334 this->camera_->requestFocus(); 335 if ( this->cameraPositionTemplate_ != "")335 if (!this->cameraPositionTemplate_.empty()) 336 336 this->addTemplate(this->cameraPositionTemplate_); 337 337 if (this->cameraPositions_.size() > 0) … … 349 349 if (!this->hud_ && GameMode::showsGraphics()) 350 350 { 351 if ( this->hudtemplate_ != "")351 if (!this->hudtemplate_.empty()) 352 352 { 353 353 this->hud_ = new OverlayGroup(this); -
code/branches/presentation2/src/orxonox/worldentities/WorldEntity.cc
r6108 r6394 814 814 void WorldEntity::setCollisionTypeStr(const std::string& typeStr) 815 815 { 816 std::stringtypeStrLower = getLowercase(typeStr);816 const std::string& typeStrLower = getLowercase(typeStr); 817 817 CollisionType type; 818 818 if (typeStrLower == "dynamic") -
code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.cc
r6387 r6394 199 199 { 200 200 // play spawn effect 201 if ( this->spawnparticlesource_ != "")201 if (!this->spawnparticlesource_.empty()) 202 202 { 203 203 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); -
code/branches/presentation2/src/orxonox/worldentities/pawns/SpaceShip.cc
r5929 r6394 187 187 void SpaceShip::loadEngineTemplate() 188 188 { 189 if ( this->enginetemplate_ != "")189 if (!this->enginetemplate_.empty()) 190 190 { 191 191 Template* temp = Template::getTemplate(this->enginetemplate_);
Note: See TracChangeset
for help on using the changeset viewer.