mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-02 12:36: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
|
Make it possible to set a specific weather state for a region from elsewhere
|
||||||
in the code
|
in the code
|
||||||
*/
|
*/
|
||||||
void WeatherManager::setRegionWeather(const std::string& region, const unsigned int currentWeather, const unsigned int nextWeather,
|
void WeatherManager::setRegionWeather(const std::string& region, const int currentWeather, const int nextWeather,
|
||||||
const unsigned int queuedWeather, const float transitionFactor, bool force)
|
const int queuedWeather, const float transitionFactor, bool force)
|
||||||
{
|
{
|
||||||
bool isSameRegion = Misc::StringUtils::ciEqual(region, mCurrentRegion);
|
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
|
Make it possible to set a specific weather state for a region from elsewhere
|
||||||
in the code
|
in the code
|
||||||
*/
|
*/
|
||||||
void setRegionWeather(const std::string& region, const unsigned int currentWeather, const unsigned int nextWeather,
|
void setRegionWeather(const std::string& region, const int currentWeather, const int nextWeather,
|
||||||
const unsigned int queuedWeather, const float transitionFactor, bool force);
|
const int queuedWeather, const float transitionFactor, bool force);
|
||||||
/*
|
/*
|
||||||
End of tes3mp addition
|
End of tes3mp addition
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -291,9 +291,9 @@ namespace mwmp
|
||||||
struct Weather
|
struct Weather
|
||||||
{
|
{
|
||||||
std::string region;
|
std::string region;
|
||||||
unsigned int currentWeather;
|
int currentWeather;
|
||||||
unsigned int nextWeather;
|
int nextWeather;
|
||||||
unsigned int queuedWeather;
|
int queuedWeather;
|
||||||
float transitionFactor;
|
float transitionFactor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue