let cape and shield texture deal with empty textures
This commit is contained in:
parent
691301019b
commit
7b14fb6668
@ -97,11 +97,17 @@ end
|
||||
|
||||
|
||||
yl_speak_up.cape2texture = function(t)
|
||||
if(not(t) or t=="") then
|
||||
t = "blank.png"
|
||||
end
|
||||
-- same texture mask as the shield
|
||||
return "yl_speak_up_mask_shield.png^[combine:32x64:56,20=" .. tostring(t)
|
||||
end
|
||||
|
||||
yl_speak_up.shield2texture = function(t)
|
||||
if(not(t) or t=="") then
|
||||
t = "3d_armor_trans.png"
|
||||
end
|
||||
return "yl_speak_up_mask_shield.png^[combine:32x64:0,0=(" .. tostring(t) .. ")"
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user