Fix typo in invis code.

Fixes weapons staying hidden after switching and uncloaking.
Closes #417. Thanks TheRealAyCe!
This commit is contained in:
SticklyMan 2015-03-14 09:10:39 -06:00
parent b0da4e8e4f
commit 583d4c2652

View File

@ -265,7 +265,7 @@ local function doInvis()
if player:Alive() and player:GetActiveWeapon():IsValid() then
if player:GetActiveWeapon() ~= t.invis.wep then
if t.invis.wep and IsValid( t.invis.web ) then -- If changed weapon, set the old weapon to be visible.
if t.invis.wep and IsValid( t.invis.wep ) then -- If changed weapon, set the old weapon to be visible.
t.invis.wep:SetRenderMode( RENDERMODE_NORMAL )
t.invis.wep:Fire( "alpha", 255, 0 )
t.invis.wep:SetMaterial( "" )