Fixes that painting asset runtime that happens every time. (#56746)

Painting titles are not guaranteed to be unique, especially between categories.
This commit is contained in:
AnturK
2021-02-08 17:54:39 -03:00
committed by GitHub
parent bbd826fa39
commit 2c8881ea39
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -488,7 +488,8 @@
var/list/portrait = p
var/png = "data/paintings/[tab]/[portrait["md5"]].png"
if(fexists(png))
assets[portrait["title"]] = png
var/asset_name = "[tab]_[portrait["md5"]]"
assets[asset_name] = png
..() //this is where it registers all these assets we added to the list
/datum/asset/simple/portraits/library