mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 00:47:29 +01:00
Revert "Extend minetest.is_yes()"
This reverts commit c435eabf3ffb77eab955d5faeb5450da1befc149.
This commit is contained in:
parent
c435eabf3f
commit
ce106a4113
@ -147,8 +147,6 @@ void TestUtilities::testIsYes()
|
||||
UASSERT(is_yes("0") == false);
|
||||
UASSERT(is_yes("1") == true);
|
||||
UASSERT(is_yes("2") == true);
|
||||
UASSERT(is_yes("on") == true);
|
||||
UASSERT(is_yes("off") == false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -272,7 +272,7 @@ inline bool is_yes(const std::string &str)
|
||||
{
|
||||
std::string s2 = lowercase(trim(str));
|
||||
|
||||
return s2 == "y" || s2 == "yes" || s2 == "true" || s2 == "on" || atoi(s2.c_str()) != 0;
|
||||
return s2 == "y" || s2 == "yes" || s2 == "true" || atoi(s2.c_str()) != 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user