1
0
forked from 0ad/0ad

Fixed some warnings

This was SVN commit r921.
This commit is contained in:
Ykkrosh 2004-08-06 11:20:37 +00:00
parent db344d5f51
commit 1b3887a274

View File

@ -164,7 +164,7 @@ float CTerrain::getExactGroundLevel( float x, float y ) const
{ {
xi = 0; xf = 0.0f; xi = 0; xf = 0.0f;
} }
if( xi >= m_MapSize ) if( xi >= (int)m_MapSize )
{ {
xi = m_MapSize - 1; xf = 1.0f; xi = m_MapSize - 1; xf = 1.0f;
} }
@ -172,7 +172,7 @@ float CTerrain::getExactGroundLevel( float x, float y ) const
{ {
yi = 0; yf = 0.0f; yi = 0; yf = 0.0f;
} }
if( yi >= m_MapSize ) if( yi >= (int)m_MapSize )
{ {
yi = m_MapSize - 1; yf = 1.0f; yi = m_MapSize - 1; yf = 1.0f;
} }