Changeset 3205 for code/trunk/src/orxonox/objects/worldentities
- Timestamp:
- Jun 22, 2009, 1:12:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/Light.cc
r3196 r3205 127 127 void Light::updateAttenuation() 128 128 { 129 if (this->light_ && this->type_ != Ogre::Light::LT_DIRECTIONAL)129 if (this->light_ && this->type_ != Light::LT_DIRECTIONAL) 130 130 this->light_->setAttenuation(this->attenuation_.x, this->attenuation_.y, this->attenuation_.z, this->attenuation_.w); 131 131 } … … 133 133 void Light::updateSpotlightRange() 134 134 { 135 if (this->light_ && this->type_ == Ogre::Light::LT_SPOTLIGHT)135 if (this->light_ && this->type_ == Light::LT_SPOTLIGHT) 136 136 this->light_->setSpotlightRange(Degree(this->spotlightRange_.x), Degree(this->spotlightRange_.y), this->spotlightRange_.z); 137 137 } … … 169 169 this->light_->setType(static_cast<Ogre::Light::LightTypes>(this->type_)); 170 170 171 if (this->type_ != Ogre::Light::LT_DIRECTIONAL)171 if (this->type_ != Light::LT_DIRECTIONAL) 172 172 this->updateAttenuation(); 173 if (this->type_ == Ogre::Light::LT_SPOTLIGHT)173 if (this->type_ == Light::LT_SPOTLIGHT) 174 174 this->updateSpotlightRange(); 175 175 }
Note: See TracChangeset
for help on using the changeset viewer.