mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-28 14:53:58 +00:00
Merge pull request #2111 from Capostrophic/fallback
[Regression] Fix constant raining
This commit is contained in:
commit
150ac71d97
@ -63,7 +63,8 @@ namespace Fallback
|
|||||||
|
|
||||||
bool Map::getFallbackBool(const std::string& fall) const
|
bool Map::getFallbackBool(const std::string& fall) const
|
||||||
{
|
{
|
||||||
return getFallbackString(fall) != "0";
|
std::string fallback = getFallbackString(fall);
|
||||||
|
return !fallback.empty() && fallback != "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Vec4f Map::getFallbackColour(const std::string& fall) const
|
osg::Vec4f Map::getFallbackColour(const std::string& fall) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user