[MIRROR] Cleans up single frame get flat icon. (#5245)
* Merge pull request #35171 from AnturK/thanksbyond Cleans up single frame get flat icon. * Cleans up single frame get flat icon.
This commit is contained in:
committed by
Poojawa
parent
59fc595ba3
commit
0941f98f96
@@ -890,7 +890,10 @@ The _flatIcons list is a cache for generated icon files.
|
||||
flat.Blend(rgb(255, 255, 255, A.alpha), ICON_MULTIPLY)
|
||||
|
||||
if(no_anim)
|
||||
return icon(flat, "", SOUTH, frame=1)
|
||||
//Clean up repeated frames
|
||||
var/icon/cleaned = new /icon()
|
||||
cleaned.Insert(flat, "", SOUTH, 1, 0)
|
||||
return cleaned
|
||||
else
|
||||
return icon(flat, "", SOUTH)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user