Merge pull request #49 from unkier/code_duplication

Code duplication in idWeapon::Clear
This commit is contained in:
RobertBeckebans 2013-06-03 02:17:36 -07:00
commit 86c2ea4d61

View file

@ -747,11 +747,6 @@ void idWeapon::Clear()
WEAPON_RAISEWEAPON.Unlink();
WEAPON_LOWERWEAPON.Unlink();
if( muzzleFlashHandle != -1 )
{
gameRenderWorld->FreeLightDef( muzzleFlashHandle );
muzzleFlashHandle = -1;
}
if( muzzleFlashHandle != -1 )
{
gameRenderWorld->FreeLightDef( muzzleFlashHandle );