Flick displays only one frame of the scaled icon's animation.
Numbered Steps to Reproduce Problem:
-Make client icon, add icon_state (animation) with few frames and name it somehow.
-Scale client's 32x32px icon to 64x64px icon,
-Flick the icon_state which has few frames (this will only display one frame)
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/Resize()
var/icon/A = new(usr.icon, usr.icon_state)
A.Scale(64,64)
var/image/C=image(icon=A,icon_state="",pixel_x=-16,pixel_y=0)
usr.overlays.Add(C)
usr.icon='blank.dmi'
mob/verb/Test()
flick("test",usr)
Expected Results:
Flick displays all frames of the icon_state.
Actual Results:
Flick displays just one frame of the icon_state.
Does the problem occur:
Every time? Or how often?Everytime
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?
Never?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? The problem didn't occur in any earlier versions because this feature was added in last version.
Workarounds:
Not a perfect way becasue I guess the animation doesn't start at 1st frame:
mob/verb/Test()
usr.icon_state="test"
spawn(3/*frames amount*/)
usr.icon_state=null