prefer standard find() over Find

This commit is contained in:
Glenn Maynard
2005-12-21 08:27:00 +00:00
parent 8f4496685e
commit 443e80551f
6 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ void AnimatedTexture::Load( CString sTexOrIniPath )
{
ASSERT( vFrames.empty() ); // don't load more than once
m_bSphereMapped = sTexOrIniPath.Find("sphere") != -1;
if( sTexOrIniPath.Find("add") != -1 )
m_bSphereMapped = sTexOrIniPath.find("sphere") != CString::npos;
if( sTexOrIniPath.find("add") != string::npos )
m_BlendMode = BLEND_ADD;
else
m_BlendMode = BLEND_NORMAL;