mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fixed constness
This commit is contained in:
parent
c605f15a15
commit
6417fa504e
@ -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…
x
Reference in New Issue
Block a user