This commit is contained in:
Glenn Maynard
2003-05-05 03:03:53 +00:00
parent fd0d78c3e9
commit 971284db59
+10 -16
View File
@@ -47,22 +47,16 @@ void RageTextureID::Init()
bool RageTextureID::operator<(const RageTextureID &rhs) const bool RageTextureID::operator<(const RageTextureID &rhs) const
{ {
if(filename < rhs.filename) return true; #define COMP(a) if(a<rhs.a) return true; if(a>rhs.a) return false;
if(filename > rhs.filename) return false; COMP(filename);
if(iMaxSize < rhs.iMaxSize) return true; COMP(iMaxSize);
if(iMaxSize > rhs.iMaxSize) return false; COMP(iMipMaps);
if(iMipMaps < rhs.iMipMaps) return true; COMP(iAlphaBits);
if(iMipMaps > rhs.iMipMaps) return false; COMP(iColorDepth);
if(iAlphaBits < rhs.iAlphaBits) return true; COMP(bDither);
if(iAlphaBits > rhs.iAlphaBits) return false; COMP(bStretch);
if(iColorDepth < rhs.iColorDepth) return true; COMP(bHotPinkColorKey);
if(iColorDepth > rhs.iColorDepth) return false; #undef COMP
if(bDither < rhs.bDither) return true;
if(bDither > rhs.bDither) return false;
if(bStretch < rhs.bStretch) return true;
if(bStretch > rhs.bStretch) return false;
if(bHotPinkColorKey < rhs.bHotPinkColorKey) return true;
if(bHotPinkColorKey > rhs.bHotPinkColorKey) return false;
return false; return false;
} }