mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
ironically, overly paranoid checks were tripping warnings
This commit is contained in:
parent
bdf6bd5c69
commit
ee3ef531e2
4 changed files with 4 additions and 4 deletions
|
|
@ -248,7 +248,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ImageAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ImageAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name) == NULL)\
|
else if (m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ public: \
|
||||||
Con::errorf("%s::_set%s() - material asset failure\"%s\" due to [%s]", macroText(className), macroText(name), _in, MaterialAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s::_set%s() - material asset failure\"%s\" due to [%s]", macroText(className), macroText(name), _in, MaterialAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name) == NULL)\
|
else if (m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s::_set%s() - Couldn't load material \"%s\"", macroText(className), macroText(name), _in);\
|
Con::errorf("%s::_set%s() - Couldn't load material \"%s\"", macroText(className), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name) == NULL)\
|
else if (m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - sound asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - sound asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name) == NULL)\
|
else if (m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load sound \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load sound \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue