mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-31 04:06:42 +00:00
[General] Use regular ints for weather states for consistency w/ OpenMW
This commit is contained in:
parent
904f804ea2
commit
0e94eb8b74
3 changed files with 7 additions and 7 deletions
|
@ -704,8 +704,8 @@ void WeatherManager::playerTeleported(const std::string& playerRegion, bool isEx
|
|||
Make it possible to set a specific weather state for a region from elsewhere
|
||||
in the code
|
||||
*/
|
||||
void WeatherManager::setRegionWeather(const std::string& region, const unsigned int currentWeather, const unsigned int nextWeather,
|
||||
const unsigned int queuedWeather, const float transitionFactor, bool force)
|
||||
void WeatherManager::setRegionWeather(const std::string& region, const int currentWeather, const int nextWeather,
|
||||
const int queuedWeather, const float transitionFactor, bool force)
|
||||
{
|
||||
bool isSameRegion = Misc::StringUtils::ciEqual(region, mCurrentRegion);
|
||||
|
||||
|
|
|
@ -277,8 +277,8 @@ namespace MWWorld
|
|||
Make it possible to set a specific weather state for a region from elsewhere
|
||||
in the code
|
||||
*/
|
||||
void setRegionWeather(const std::string& region, const unsigned int currentWeather, const unsigned int nextWeather,
|
||||
const unsigned int queuedWeather, const float transitionFactor, bool force);
|
||||
void setRegionWeather(const std::string& region, const int currentWeather, const int nextWeather,
|
||||
const int queuedWeather, const float transitionFactor, bool force);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
|
@ -291,9 +291,9 @@ namespace mwmp
|
|||
struct Weather
|
||||
{
|
||||
std::string region;
|
||||
unsigned int currentWeather;
|
||||
unsigned int nextWeather;
|
||||
unsigned int queuedWeather;
|
||||
int currentWeather;
|
||||
int nextWeather;
|
||||
int queuedWeather;
|
||||
float transitionFactor;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue