Merge pull request #2466 from CHOMPStationBot/upstream-merge-10963

[MIRROR] Byond will never stop with this huh
This commit is contained in:
Nadyr
2021-07-10 00:45:05 -04:00
committed by GitHub
+3 -3
View File
@@ -490,10 +490,10 @@
var/list/chosen = pick(painting_category)
if(!fexists("data/persistent/paintings/[persistence_id]/[chosen["md5"]].png")) //shitmin deleted this art, lets remove json entry to avoid errors
painting_category -= list(chosen)
SSpersistence.unpicked_paintings -= chosen
SSpersistence.unpicked_paintings -= list(chosen)
continue //and try again
painting = chosen
SSpersistence.unpicked_paintings -= chosen
SSpersistence.unpicked_paintings -= list(chosen)
var/title = painting["title"]
var/author_name = painting["author"]
@@ -574,7 +574,7 @@
for(var/list/entry in SSpersistence.all_paintings)
if(entry["md5"] == md5)
filenames_found += "data/persistent/paintings/[entry["persistence_id"]]/[entry["md5"]].png"
SSpersistence.all_paintings -= entry
SSpersistence.all_paintings -= list(entry)
for(var/png in filenames_found)
if(fexists(png))
fdel(png)