From e93ba8dd27bcc96270ea18f8f165d6a0706a0997 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 12 Jan 2004 22:06:39 +0000 Subject: [PATCH] bga "player" tag --- stepmania/src/BGAnimationLayer.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 604bf5328b..3fcc348064 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -446,6 +446,19 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer ) IniFile ini(sPathToIni); ini.ReadFile(); + { + int player; + if( ini.GetValue( sLayer, "Player", player ) ) + { + if( player > 0 && player <= NUM_PLAYERS ) + { + if( !GAMESTATE->IsPlayerEnabled(player-1) ) + return; + } else + LOG->Warn("BGA \"%s\" %s has an invalid Player field", + sAniDir.c_str(), sLayer.c_str() ); + } + } bool IsBanner = false;