From 209070b32f810371e0b468ca8db95b8c6abef44c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Oct 2003 03:38:02 +0000 Subject: [PATCH] Add DefaultModifiers metric. This is for settings that are specific to a theme. --- stepmania/src/GameState.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 6ea173977b..a9513ec1e7 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -29,6 +29,7 @@ #include "AnnouncerManager.h" #include "ProfileManager.h" #include "arch/arch.h" +#include "ThemeManager.h" GameState* GAMESTATE = NULL; // global and accessable from anywhere in our program @@ -57,6 +58,8 @@ GameState::~GameState() void GameState::Reset() { + ASSERT( THEME ); + int p; m_CurStyle = STYLE_INVALID; @@ -106,7 +109,10 @@ void GameState::Reset() m_SongOptions.Init(); for( p=0; pGetMetric( "Common","DefaultModifiers" ) ); ApplyModifiers( (PlayerNumber)p, PREFSMAN->m_sDefaultModifiers ); + } for( p=0; p