replace large, arbitrary numbers with limit constants

This commit is contained in:
Chris Danford
2005-03-29 19:10:42 +00:00
parent d0ee7921ed
commit afb2c2efb4
6 changed files with 14 additions and 11 deletions
+3 -2
View File
@@ -12,6 +12,7 @@
#include "PlayerState.h"
#include "GameState.h"
#include "Style.h"
#include <float.h>
const float ARROW_SPACING = ARROW_SIZE;// + 2;
@@ -195,8 +196,8 @@ float ArrowEffects::GetXPos( const PlayerState* pPlayerState, int iColNum, float
CLAMP( iStartCol, 0, pStyle->m_iColsPerPlayer-1 );
CLAMP( iEndCol, 0, pStyle->m_iColsPerPlayer-1 );
float fMinX = +100000;
float fMaxX = -100000;
float fMinX = FLT_MAX;
float fMaxX = FLT_MIN;
// TODO: Don't index by PlayerNumber.
PlayerNumber pn = pPlayerState->m_PlayerNumber;