[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:
CitadelStationBot
2018-02-04 22:21:24 -06:00
committed by Poojawa
parent 59fc595ba3
commit 0941f98f96
2 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -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)