mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
[General] Use regular ints for weather states for consistency w/ OpenMW
This commit is contained in:
parent
904f804ea2
commit
0e94eb8b74
@ -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…
x
Reference in New Issue
Block a user