This commit is contained in:
Glenn Maynard
2006-02-14 11:16:39 +00:00
parent 958299c734
commit 62a0ac1370
10 changed files with 42 additions and 45 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ void Font::CapsOnly()
{ {
/* For each uppercase character that we have a mapping for, add /* For each uppercase character that we have a mapping for, add
* a lowercase one. */ * a lowercase one. */
for(char c = 'A'; c <= 'Z'; ++c) for( char c = 'A'; c <= 'Z'; ++c )
{ {
map<longchar,glyph*>::const_iterator it = m_iCharToGlyph.find(c); map<longchar,glyph*>::const_iterator it = m_iCharToGlyph.find(c);
+2 -5
View File
@@ -284,13 +284,9 @@ void LifeMeterBar::AfterLifeChanged()
bool LifeMeterBar::IsPastPassmark() const bool LifeMeterBar::IsPastPassmark() const
{ {
if( m_pPlayerState->m_PlayerOptions.m_fPassmark > 0 ) if( m_pPlayerState->m_PlayerOptions.m_fPassmark > 0 )
{
return m_fLifePercentage >= m_pPlayerState->m_PlayerOptions.m_fPassmark; return m_fLifePercentage >= m_pPlayerState->m_PlayerOptions.m_fPassmark;
}
else else
{
return false; return false;
}
} }
bool LifeMeterBar::IsHot() const bool LifeMeterBar::IsHot() const
@@ -367,7 +363,8 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
if (m_fLifeDifficulty >= 0.4) return; if (m_fLifeDifficulty >= 0.4) return;
/* Approximate deductions for a miss /*
* Approximate deductions for a miss
* Life 1 : 5 % * Life 1 : 5 %
* Life 2 : 5.7 % * Life 2 : 5.7 %
* Life 3 : 6.6 % * Life 3 : 6.6 %
+8 -8
View File
@@ -169,8 +169,8 @@ void RageLog::SetShowLogOutput( bool show )
{ {
// create a new console window and attach standard handles // create a new console window and attach standard handles
AllocConsole(); AllocConsole();
freopen("CONOUT$","wb",stdout); freopen( "CONOUT$","wb", stdout );
freopen("CONOUT$","wb",stderr); freopen( "CONOUT$","wb", stderr );
} }
else else
{ {
@@ -182,11 +182,11 @@ void RageLog::SetShowLogOutput( bool show )
void RageLog::Trace( const char *fmt, ...) void RageLog::Trace( const char *fmt, ...)
{ {
va_list va; va_list va;
va_start(va, fmt); va_start( va, fmt );
RString sBuff = vssprintf( fmt, va ); RString sBuff = vssprintf( fmt, va );
va_end(va); va_end( va);
Write(0, sBuff); Write(0, sBuff );
} }
/* Use this for more important information; it'll always be included /* Use this for more important information; it'll always be included
@@ -194,11 +194,11 @@ void RageLog::Trace( const char *fmt, ...)
void RageLog::Info( const char *fmt, ...) void RageLog::Info( const char *fmt, ...)
{ {
va_list va; va_list va;
va_start(va, fmt); va_start( va, fmt );
RString sBuff = vssprintf( fmt, va ); RString sBuff = vssprintf( fmt, va );
va_end(va); va_end( va );
Write(WRITE_TO_INFO, sBuff); Write( WRITE_TO_INFO, sBuff );
} }
void RageLog::Warn( const char *fmt, ...) void RageLog::Warn( const char *fmt, ...)