just small stylistic cleanup
This commit is contained in:
+6
-6
@@ -139,10 +139,10 @@ void MenuTimer::Disable()
|
|||||||
|
|
||||||
void MenuTimer::Stall()
|
void MenuTimer::Stall()
|
||||||
{
|
{
|
||||||
/* Max amount of stall time we'll use: */
|
// Max amount of stall time we'll use:
|
||||||
const float Amt = min( 0.5f, m_fStallSecondsLeft );
|
const float Amt = min( 0.5f, m_fStallSecondsLeft );
|
||||||
|
|
||||||
/* Amount of stall time to add: */
|
// Amount of stall time to add:
|
||||||
const float ToAdd = Amt - m_fStallSeconds;
|
const float ToAdd = Amt - m_fStallSeconds;
|
||||||
|
|
||||||
m_fStallSeconds += ToAdd;
|
m_fStallSeconds += ToAdd;
|
||||||
@@ -197,11 +197,11 @@ void MenuTimer::SetText( float fSeconds )
|
|||||||
class LunaMenuTimer: public Luna<MenuTimer>
|
class LunaMenuTimer: public Luna<MenuTimer>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static int setseconds( T* p, lua_State *L ) { p->SetSeconds(FArg(1)); return 0; }
|
static int setseconds( T* p, lua_State *L ) { p->SetSeconds(FArg(1)); return 0; }
|
||||||
static int GetSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSeconds() ); return 1; }
|
static int GetSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSeconds() ); return 1; }
|
||||||
static int pause( T* p, lua_State *L ) { p->Pause(); return 0; }
|
static int pause( T* p, lua_State *L ) { p->Pause(); return 0; }
|
||||||
static int stop( T* p, lua_State *L ) { p->Stop(); return 0; }
|
static int stop( T* p, lua_State *L ) { p->Stop(); return 0; }
|
||||||
static int silent( T* p, lua_State *L ) { p->EnableSilent(BArg(1)); return 0; }
|
static int silent( T* p, lua_State *L ) { p->EnableSilent(BArg(1)); return 0; }
|
||||||
static int stealth( T* p, lua_State *L ) { p->EnableStealth(BArg(1)); return 0; }
|
static int stealth( T* p, lua_State *L ) { p->EnableStealth(BArg(1)); return 0; }
|
||||||
|
|
||||||
LunaMenuTimer()
|
LunaMenuTimer()
|
||||||
|
|||||||
Reference in New Issue
Block a user