From 3d7f268dae811f38fde65dd8bcc8365965994a0c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Oct 2006 08:25:11 +0000 Subject: [PATCH] "Optional" attrib unused --- stepmania/src/Actor.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 76a7e3494d..5e97b07f25 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -219,14 +219,11 @@ void Actor::LoadFromNode( const XNode* pNode ) if( !pChild->GetAttrValue( "Name", sName ) ) RageException::Throw( "%s: Input: missing the attribute \"Name\"", ActorUtil::GetWhere(pNode).c_str() ); - bool bOptional = false; - pChild->GetAttrValue( "Optional", bOptional ); - this->PushSelf( L ); LuaHelpers::Push( L, sName ); ActorUtil::GetParam( L, sName ); - if( lua_isnil(L, -1) && !bOptional ) + if( lua_isnil(L, -1) ) RageException::Throw( "%s: Actor requires parameter \"%s\" that is not set", ActorUtil::GetWhere(pNode).c_str(), sName.c_str() ); lua_settable( L, -3 );