mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 14:09:39 +00:00
Fixed constness
This commit is contained in:
parent
c605f15a15
commit
6417fa504e
2 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ void WeatherManager::setFallbackWeather(Weather& weather,const std::string& name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
float WeatherManager::calculateHourFade (const std::string& moonName)
|
float WeatherManager::calculateHourFade (const std::string& moonName) const
|
||||||
{
|
{
|
||||||
float fadeOutStart=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Out_Start");
|
float fadeOutStart=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Out_Start");
|
||||||
float fadeInStart=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_In_Start");
|
float fadeInStart=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_In_Start");
|
||||||
|
@ -77,7 +77,7 @@ float WeatherManager::calculateHourFade (const std::string& moonName)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
float WeatherManager::calculateAngleFade (const std::string& moonName, float angle)
|
float WeatherManager::calculateAngleFade (const std::string& moonName, float angle) const
|
||||||
{
|
{
|
||||||
float endAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_End_Angle");
|
float endAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_End_Angle");
|
||||||
float startAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Start_Angle");
|
float startAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Start_Angle");
|
||||||
|
|
|
@ -174,8 +174,8 @@ namespace MWWorld
|
||||||
WeatherResult transition(const float factor);
|
WeatherResult transition(const float factor);
|
||||||
WeatherResult getResult(const Ogre::String& weather);
|
WeatherResult getResult(const Ogre::String& weather);
|
||||||
|
|
||||||
float calculateHourFade (const std::string& moonName);
|
float calculateHourFade (const std::string& moonName) const;
|
||||||
float calculateAngleFade (const std::string& moonName, float angle);
|
float calculateAngleFade (const std::string& moonName, float angle) const;
|
||||||
|
|
||||||
void setWeather(const Ogre::String& weather, bool instant=false);
|
void setWeather(const Ogre::String& weather, bool instant=false);
|
||||||
float mSunriseTime;
|
float mSunriseTime;
|
||||||
|
|
Loading…
Reference in a new issue