1
0
Fork 0
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:
PilzAdam 2013-07-08 01:58:22 +02:00
parent 88d43af276
commit 6bc3a43d52
3 changed files with 5 additions and 22 deletions

View file

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