Add '0' as an alias for 'OFF' for OPENMW_OPTIMIZE

This commit is contained in:
scrawl 2017-07-10 23:49:42 +02:00
parent 951c4e12e0
commit be940656db

View file

@ -452,7 +452,7 @@ namespace Resource
{ {
std::string str(env); std::string str(env);
if(str.find("OFF")!=std::string::npos) options = 0; if(str.find("OFF")!=std::string::npos || str.find("0")!= std::string::npos) options = 0;
if(str.find("~FLATTEN_STATIC_TRANSFORMS")!=std::string::npos) options ^= Optimizer::FLATTEN_STATIC_TRANSFORMS; if(str.find("~FLATTEN_STATIC_TRANSFORMS")!=std::string::npos) options ^= Optimizer::FLATTEN_STATIC_TRANSFORMS;
else if(str.find("FLATTEN_STATIC_TRANSFORMS")!=std::string::npos) options |= Optimizer::FLATTEN_STATIC_TRANSFORMS; else if(str.find("FLATTEN_STATIC_TRANSFORMS")!=std::string::npos) options |= Optimizer::FLATTEN_STATIC_TRANSFORMS;