bug fixes

This commit is contained in:
Chris Danford
2002-02-28 19:40:40 +00:00
parent 9000d0e4de
commit a6b3663a3c
24 changed files with 961 additions and 115 deletions
-26
View File
@@ -12,36 +12,10 @@
#include "RageUtil.h"
//-----------------------------------------------------------------------------
// UTIL globals
//-----------------------------------------------------------------------------
const CString g_sLogFileName = "log.txt";
const CString g_sErrorFileName = "error.txt";
FILE* g_fileLog = NULL;
//-----------------------------------------------------------------------------
// Name: randomf()
// Desc:
//-----------------------------------------------------------------------------
float randomf( float low, float high )
{
return low + ( high - low ) * ( (FLOAT)rand() ) / RAND_MAX;
}
//-----------------------------------------------------------------------------
// Name: roundf()
// Desc:
//-----------------------------------------------------------------------------
int roundf( float f )
{
return (int)((f)+0.5f);
}
int roundf( double f )
{
return (int)((f)+0.5);
}
bool IsAnInt( CString s )