mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +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 fadeInStart=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_In_Start");
|
||||
@ -77,7 +77,7 @@ float WeatherManager::calculateHourFade (const std::string& moonName)
|
||||
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 startAngle=mFallback->getFallbackFloat("Moons_"+moonName+"_Fade_Start_Angle");
|
||||
|
@ -174,8 +174,8 @@ namespace MWWorld
|
||||
WeatherResult transition(const float factor);
|
||||
WeatherResult getResult(const Ogre::String& weather);
|
||||
|
||||
float calculateHourFade (const std::string& moonName);
|
||||
float calculateAngleFade (const std::string& moonName, float angle);
|
||||
float calculateHourFade (const std::string& moonName) const;
|
||||
float calculateAngleFade (const std::string& moonName, float angle) const;
|
||||
|
||||
void setWeather(const Ogre::String& weather, bool instant=false);
|
||||
float mSunriseTime;
|
||||
|
Loading…
Reference in New Issue
Block a user