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,15 +91,25 @@ Material::Material(const XMLNode *node, int index)
|
||||
|
||||
s="";
|
||||
node->get("graphical-effect", &s );
|
||||
if(s=="water")
|
||||
|
||||
if (s == "water")
|
||||
{
|
||||
m_graphical_effect = GE_WATER;
|
||||
else if (s!="")
|
||||
}
|
||||
else if (s == "none")
|
||||
{
|
||||
}
|
||||
else if (s != "")
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Invalid graphical effect specification: '%s' - ignored.\n",
|
||||
s.c_str());
|
||||
"Invalid graphical effect specification: '%s' - ignored.\n",
|
||||
s.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_graphical_effect = GE_NONE;
|
||||
|
||||
}
|
||||
|
||||
if (node->get("compositing", &s))
|
||||
{
|
||||
if (s == "blend") m_alpha_blending = true;
|
||||
|
Loading…
Reference in New Issue
Block a user