GCC compatibility (fixed CStr.h case, got rid of a few warnings)

This was SVN commit r4581.
This commit is contained in:
Ykkrosh
2006-10-20 01:06:43 +00:00
parent b03c42d4f2
commit 1f268b17bb
11 changed files with 25 additions and 26 deletions
+1 -1
View File
@@ -823,7 +823,7 @@ jsval CEntity::RegisterOrderChange( JSContext* cx, uintN argc, jsval* argv )
float angle = acosf( up.dot(posDelta) );
//Find what section it is between and "deactivate" it
int sector = MAX( 0.0, findSector(m_base->m_sectorDivs, angle, DEGTORAD(360.0f)) );
int sector = std::max(0, findSector(m_base->m_sectorDivs, angle, DEGTORAD(360.0f)));
m_sectorValues[sector]=false;
return JS_TRUE;
}