clean up STYLE_TECHNO_VERSUS8 hack: Sprite really should not

be depending on GameState
This commit is contained in:
Glenn Maynard
2004-06-08 22:27:37 +00:00
parent f482a18a37
commit aea0a41a68
6 changed files with 27 additions and 12 deletions
-12
View File
@@ -12,9 +12,6 @@
#include "SDL_utils.h"
#include "ActorUtil.h"
#include "arch/ArchHooks/ArchHooks.h"
#include "Game.h"
#include "GameState.h"
#include "Style.h"
Sprite::Sprite()
{
@@ -82,15 +79,6 @@ bool Sprite::Load( RageTextureID ID )
else
result = LoadFromTexture( ID );
// 2-player 8-panel gets crowded - this scaling emulates the arcade behaviour to account for this
if( GAMESTATE->m_CurGame == GAME_TECHNO &&
GAMESTATE->m_CurStyle == STYLE_TECHNO_VERSUS8 &&
ID.filename.find( "NoteSkin" ) != -1 )
{
Actor::SetBaseZoomX( Actor::m_baseScale.x * (float)0.8 );
Actor::SetBaseZoomY( Actor::m_baseScale.y * (float)0.8 );
}
return result;
};