fix GetTotalSeconds
This commit is contained in:
@@ -926,11 +926,12 @@ public:
|
|||||||
static int GetEstimatedNumStages( T* p, lua_State *L ) { lua_pushnumber(L, p->GetEstimatedNumStages() ); return 1; }
|
static int GetEstimatedNumStages( T* p, lua_State *L ) { lua_pushnumber(L, p->GetEstimatedNumStages() ); return 1; }
|
||||||
static int GetTotalSeconds( T* p, lua_State *L )
|
static int GetTotalSeconds( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
StepsType st = StepsType( IArg(1) );
|
StepsType st = (StepsType) IArg(1);
|
||||||
float fOut = 0.0f;
|
float fTotalSeconds;
|
||||||
|
if( !p->GetTotalSeconds(st, fTotalSeconds) )
|
||||||
p->GetTotalSeconds( st, fOut );
|
lua_pushnil( L );
|
||||||
lua_pushnumber( L, fOut );
|
else
|
||||||
|
lua_pushnumber( L, fTotalSeconds );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user