1
0
Fork 1
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:
David Cernat 2019-10-24 20:08:08 +03:00
parent 904f804ea2
commit 0e94eb8b74
3 changed files with 7 additions and 7 deletions
apps/openmw/mwworld
components/openmw-mp/Base

View file

@ -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);

View file

@ -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
*/ */

View file

@ -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;
}; };