bug fixes
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user