mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 14:05:08 +00:00
GCC compatibility (fixed CStr.h case, got rid of a few warnings)
This was SVN commit r4581.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user