Multiple warning fixes dealing with casts.

Yes, I am using static_casts. Generally safer.
This commit is contained in:
Jason Felds
2011-03-14 02:09:58 -04:00
parent 1dfb1c6143
commit 650653b4d2
10 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ float ArrowEffects::GetXPos( const PlayerState* pPlayerState, int iColNum, float
{
// find the middle, and split based on iColNum
// it's unknown if this will work for routine.
const int iMiddleColumn = floor(pStyle->m_iColsPerPlayer/2.0f);
const int iMiddleColumn = static_cast<int>(floor(pStyle->m_iColsPerPlayer/2.0f));
if( iColNum > iMiddleColumn-1 )
fPixelOffsetFromCenter += fEffects[PlayerOptions::EFFECT_XMODE]*-(fYOffset);
else