mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Merge pull request #1629
This commit is contained in:
commit
eb723f5ae6
@ -1,5 +1,7 @@
|
||||
#include "fallback.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
|
||||
@ -17,6 +19,7 @@ namespace Fallback
|
||||
std::map<std::string,std::string>::const_iterator it;
|
||||
if((it = mFallbackMap.find(fall)) == mFallbackMap.end())
|
||||
{
|
||||
std::cerr << "Warning: fallback value " << fall << " not found." << std::endl;
|
||||
return "";
|
||||
}
|
||||
return it->second;
|
||||
@ -53,7 +56,7 @@ namespace Fallback
|
||||
{
|
||||
std::string sum=getFallbackString(fall);
|
||||
if (sum.empty())
|
||||
return osg::Vec4f(0.f,0.f,0.f,1.f);
|
||||
return osg::Vec4f(0.5f,0.5f,0.5f,1.f);
|
||||
else
|
||||
{
|
||||
std::string ret[3];
|
||||
|
Loading…
x
Reference in New Issue
Block a user