From b05169b83e4c7cafe3e9fe018b27b5b8296721c3 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 30 Mar 2011 01:13:10 -0400 Subject: [PATCH] [sm130futures] Add command to force reload the score. Granted, have to hook it up to lua now. --- src/RollingNumbers.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/RollingNumbers.cpp b/src/RollingNumbers.cpp index 4bc95174b2..74793b91eb 100644 --- a/src/RollingNumbers.cpp +++ b/src/RollingNumbers.cpp @@ -1,6 +1,7 @@ #include "global.h" #include "RollingNumbers.h" #include "RageUtil.h" +#include "GameState.h" #include "XmlFile.h" #include "ActorUtil.h" #include "LuaManager.h" @@ -105,11 +106,17 @@ class LunaRollingNumbers: public Luna public: static int Load( T* p, lua_State *L ) { p->Load(SArg(1)); return 0; } static int targetnumber( T* p, lua_State *L ) { p->SetTargetNumber( FArg(1) ); return 0; } + static int ForceReload( T* p, lua_State *L ) + { + p->Update( GAMESTATE->m_LastBeatUpdate.GetDeltaTime() ); + return 0; + } LunaRollingNumbers() { ADD_METHOD( Load ); ADD_METHOD( targetnumber ); + ADD_METHOD( ForceReload ); } };