mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 17:56:42 +00:00 
			
		
		
		
	fix compilation bug with Visual C++
This commit is contained in:
		
							parent
							
								
									4990ba48ed
								
							
						
					
					
						commit
						39415f0b4a
					
				
					 2 changed files with 16 additions and 8 deletions
				
			
		|  | @ -21,6 +21,14 @@ const std::string WeatherGlobals::mThunderSoundID0 = "Thunder0"; | |||
| const std::string WeatherGlobals::mThunderSoundID1 = "Thunder1"; | ||||
| const std::string WeatherGlobals::mThunderSoundID2 = "Thunder2"; | ||||
| const std::string WeatherGlobals::mThunderSoundID3 = "Thunder3"; | ||||
| const float WeatherGlobals::mSunriseTime = 8; | ||||
| const float WeatherGlobals::mSunsetTime = 18; | ||||
| const float WeatherGlobals::mSunriseDuration = 2; | ||||
| const float WeatherGlobals::mSunsetDuration = 2; | ||||
| const float WeatherGlobals::mWeatherUpdateTime = 20.f; | ||||
| const float WeatherGlobals::mThunderFrequency = .4; | ||||
| const float WeatherGlobals::mThunderThreshold = 0.6; | ||||
| const float WeatherGlobals::mThunderSoundDelay = 0.25; | ||||
| 
 | ||||
| WeatherManager::WeatherManager(MWRender::RenderingManager* rendering, Environment* env) :  | ||||
|      mHour(14), mCurrentWeather("clear"), mFirstUpdate(true), mWeatherUpdateTime(0), | ||||
|  |  | |||
|  | @ -95,18 +95,18 @@ namespace MWWorld | |||
|         Script Color=255,20,20 | ||||
|         */ | ||||
|          | ||||
|         static const float mSunriseTime = 8; | ||||
|         static const float mSunsetTime = 18; | ||||
|         static const float mSunriseDuration = 2; | ||||
|         static const float mSunsetDuration = 2; | ||||
|         static const float mSunriseTime; | ||||
|         static const float mSunsetTime; | ||||
|         static const float mSunriseDuration; | ||||
|         static const float mSunsetDuration; | ||||
|          | ||||
|         static const float mWeatherUpdateTime = 20.f; | ||||
|         static const float mWeatherUpdateTime; | ||||
|          | ||||
|         // morrowind sets these per-weather, but since they are only used by 'thunderstorm'
 | ||||
|         // weather setting anyway, we can just as well set them globally
 | ||||
|         static const float mThunderFrequency = .4; | ||||
|         static const float mThunderThreshold = 0.6; | ||||
|         static const float mThunderSoundDelay = 0.25; | ||||
|         static const float mThunderFrequency; | ||||
|         static const float mThunderThreshold; | ||||
|         static const float mThunderSoundDelay; | ||||
|         static const std::string mThunderSoundID0; | ||||
|         static const std::string mThunderSoundID1; | ||||
|         static const std::string mThunderSoundID2; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue