Oops. Fix my broken ScreenEval logic and other things.

This commit is contained in:
Chris Danford
2003-02-11 02:44:26 +00:00
parent 6320e15256
commit c55e4a15b4
6 changed files with 33 additions and 19 deletions
+4 -3
View File
@@ -63,11 +63,12 @@ const char NAME_CHARS[] =
#define HEIGHT_OF_ALL_CHARS (NUM_NAME_CHARS * g_fCharsSpacingY)
int GetClosestCharIndex( float fFakeBeat )
{
return ((int)roundf(fFakeBeat)) % NUM_NAME_CHARS;
};
int iCharIndex = (int)roundf(fFakeBeat) % NUM_NAME_CHARS;
ASSERT( iCharIndex >= 0 );
return iCharIndex;
}
// return value is relative to gray arrows
float GetClosestCharYOffset( float fFakeBeat )