Fix harmless warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b168773dd9
commit
ffd690a546
@ -91,14 +91,24 @@ Material::Material(const XMLNode *node, int index)
|
|||||||
|
|
||||||
s="";
|
s="";
|
||||||
node->get("graphical-effect", &s );
|
node->get("graphical-effect", &s );
|
||||||
|
|
||||||
if (s == "water")
|
if (s == "water")
|
||||||
|
{
|
||||||
m_graphical_effect = GE_WATER;
|
m_graphical_effect = GE_WATER;
|
||||||
|
}
|
||||||
|
else if (s == "none")
|
||||||
|
{
|
||||||
|
}
|
||||||
else if (s != "")
|
else if (s != "")
|
||||||
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Invalid graphical effect specification: '%s' - ignored.\n",
|
"Invalid graphical effect specification: '%s' - ignored.\n",
|
||||||
s.c_str());
|
s.c_str());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
m_graphical_effect = GE_NONE;
|
m_graphical_effect = GE_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
if (node->get("compositing", &s))
|
if (node->get("compositing", &s))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user