From: <au...@us...> - 2011-03-02 02:13:47
|
Revision: 7788 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7788&view=rev Author: auria Date: 2011-03-02 02:13:41 +0000 (Wed, 02 Mar 2011) Log Message: ----------- Fix harmless warnings Modified Paths: -------------- main/trunk/src/graphics/material.cpp Modified: main/trunk/src/graphics/material.cpp =================================================================== --- main/trunk/src/graphics/material.cpp 2011-03-02 02:11:45 UTC (rev 7787) +++ main/trunk/src/graphics/material.cpp 2011-03-02 02:13:41 UTC (rev 7788) @@ -91,15 +91,25 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |