Changeset 3205 for code/trunk/src/orxonox
- Timestamp:
- Jun 22, 2009, 1:12:13 PM (15 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSDedicated.cc
r3198 r3205 60 60 , timeSinceLastUpdate_(0) 61 61 , closeThread_(false) 62 , cleanLine_(true) 62 63 , inputIterator_(0) 63 , cleanLine_(true)64 64 , cursorX_(0) 65 65 , cursorY_(0) … … 117 117 else 118 118 { 119 usleep((unsigned int)((NETWORK_PERIOD - timeSinceLastUpdate_)*1000*1000));120 usleep(NETWORK_PERIOD*1000*1000); // NOTE: this is to throttle the non-network framerate119 msleep(static_cast<unsigned int>((NETWORK_PERIOD - timeSinceLastUpdate_)*1000)); 120 msleep(static_cast<unsigned int>(NETWORK_PERIOD*1000)); // NOTE: this is to throttle the non-network framerate 121 121 // COUT(0) << "sleeping for " << (int)((NETWORK_PERIOD - timeSinceLastUpdate_) * 1000 * 1000) << " usec" << endl; 122 122 } -
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.