mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Settings: everything != 0 equals true; remove .asm shaders
This commit is contained in:
parent
88d43af276
commit
6bc3a43d52
3 changed files with 5 additions and 22 deletions
|
@ -146,7 +146,7 @@ inline std::string lowercase(const std::string &s)
|
|||
inline bool is_yes(const std::string &s)
|
||||
{
|
||||
std::string s2 = lowercase(trim(s));
|
||||
if(s2 == "y" || s2 == "yes" || s2 == "true" || s2 == "1")
|
||||
if(s2 == "y" || s2 == "yes" || s2 == "true" || atoi(s2.c_str()) != 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue