From 6417fa504e45a5703664925c28e958b2c8d5fe23 Mon Sep 17 00:00:00 2001 From: Glorf Date: Thu, 9 May 2013 13:56:13 +0200 Subject: [PATCH] Fixed constness --- apps/openmw/mwworld/weather.cpp | 4 ++-- apps/openmw/mwworld/weather.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwworld/weather.cpp b/apps/openmw/mwworld/weather.cpp index 1e5cbd389a..954d5c8658 100644 --- a/apps/openmw/mwworld/weather.cpp +++ b/apps/openmw/mwworld/weather.cpp @@ -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"); diff --git a/apps/openmw/mwworld/weather.hpp b/apps/openmw/mwworld/weather.hpp index bf6c8bfd8b..081bd7f87d 100644 --- a/apps/openmw/mwworld/weather.hpp +++ b/apps/openmw/mwworld/weather.hpp @@ -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;