fix warning
This commit is contained in:
@@ -118,7 +118,10 @@ static int LuaPanic( lua_State *L )
|
|||||||
* an exception from there. */
|
* an exception from there. */
|
||||||
jbuf_error = err;
|
jbuf_error = err;
|
||||||
longjmp( jbuf, 1 );
|
longjmp( jbuf, 1 );
|
||||||
return 0; // control never reaches here but quiets warning
|
/* This causes an "unreachable code" warning in VC. If you're getting a "control reaches
|
||||||
|
* end of function" warning, then your headers aren't correctly marking longjmp as NORETURN.
|
||||||
|
* My headers (glibc 2.3.2) do. -glenn */
|
||||||
|
// return 0; // control never reaches here but quiets warning
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Lua::RunExpression( const CString &str )
|
bool Lua::RunExpression( const CString &str )
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ void PlayerMinus::Update( float fDeltaTime )
|
|||||||
{
|
{
|
||||||
float fPercentReverse = GAMESTATE->m_CurrentPlayerOptions[m_PlayerNumber].GetReversePercentForColumn(c);
|
float fPercentReverse = GAMESTATE->m_CurrentPlayerOptions[m_PlayerNumber].GetReversePercentForColumn(c);
|
||||||
float fHoldJudgeYPos = SCALE( fPercentReverse, 0.f, 1.f, HOLD_JUDGMENT_Y_STANDARD, HOLD_JUDGMENT_Y_REVERSE );
|
float fHoldJudgeYPos = SCALE( fPercentReverse, 0.f, 1.f, HOLD_JUDGMENT_Y_STANDARD, HOLD_JUDGMENT_Y_REVERSE );
|
||||||
float fGrayYPos = SCALE( fPercentReverse, 0.f, 1.f, GRAY_ARROWS_Y_STANDARD, GRAY_ARROWS_Y_REVERSE );
|
// float fGrayYPos = SCALE( fPercentReverse, 0.f, 1.f, GRAY_ARROWS_Y_STANDARD, GRAY_ARROWS_Y_REVERSE );
|
||||||
|
|
||||||
const float fX = ArrowGetXPos( m_PlayerNumber, c, 0 );
|
const float fX = ArrowGetXPos( m_PlayerNumber, c, 0 );
|
||||||
const float fZ = ArrowGetZPos( m_PlayerNumber, c, 0 );
|
const float fZ = ArrowGetZPos( m_PlayerNumber, c, 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user