Attempt to fix MenuTimer-related warning dialogs that come up when changing themes (happens when one theme's warning timer starts higher than another, and the other theme doesn't define it).
This commit is contained in:
@@ -48,6 +48,10 @@ void MenuTimer::Load( RString sMetricsGroup )
|
||||
WARNING_START.Load(sMetricsGroup,"WarningStart");
|
||||
WARNING_BEEP_START.Load(sMetricsGroup,"WarningBeepStart");
|
||||
MAX_STALL_SECONDS.Load(sMetricsGroup,"MaxStallSeconds");
|
||||
|
||||
if(WARNING_COMMAND)
|
||||
WARNING_COMMAND->Clear();
|
||||
|
||||
WARNING_COMMAND = new ThemeMetric1D<apActorCommands>(sMetricsGroup, WARNING_COMMAND_NAME, WARNING_START+1);
|
||||
|
||||
m_fStallSecondsLeft = MAX_STALL_SECONDS;
|
||||
|
||||
+1
-2
@@ -27,9 +27,8 @@ public:
|
||||
void EnableSilent( bool bSilent ) { m_bSilent = bSilent; } // make timer silent
|
||||
void EnableStealth( bool bStealth ); // make timer invisible and silent
|
||||
|
||||
//
|
||||
|
||||
// Lua
|
||||
//
|
||||
virtual void PushSelf( lua_State *L );
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user