[MIRROR] Makes icon2html support mutable appearences again (#5361)

* Makes icon2html support mutable appearances again (#58796)

Fixes prayers not having the cute little icon attached to them

* Makes icon2html support mutable appearences again

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-04-30 19:03:56 +02:00
committed by GitHub
parent 304f8fbc4b
commit c31eb79af9

View File

@@ -1116,7 +1116,8 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
if (isnull(icon_state))
icon_state = A.icon_state
if (isnull(icon_state) || A.flags_1 & HTML_USE_INITAL_ICON_1)
//Despite casting to atom, this code path supports mutable appearances, so let's be nice to them
if(isnull(icon_state) || (isatom(thing) && A.flags_1 & HTML_USE_INITAL_ICON_1))
icon_state = initial(A.icon_state)
if (isnull(dir))
dir = initial(A.dir)