ID:1147836
 
Not a bug
BYOND Version:498
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 18.0
Applies to:Dream Seeker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
I think Flip() might be broken, it seems to nullify icons rather than actually flipping them.

Numbered Steps to Reproduce Problem:
http://files.byondhome.com/SuperAntx/FlipIcon_src.zip

FlipIcon will attempt to mirror the mob's icon so the arrow points to the left.
FlipFTP will save a before and after of the mob's icon. The post-flip icon seems to be null and cannot be saved.

Expected Results:
The mob's icon, a red arrow pointing east, should point west after running FlipIcon.

Actual Results:
The mob's icon is set to null.
Looks like you've made the (actually very common) mistake of thinking the icon processes return the new altered icon, when they actually work in place and return nothing.

You want this:
            var/icon/I = new(icon)
I.Flip(WEST)
icon = I
DarkCampainger resolved issue (Not a bug)
Oh, thanks a bunch. I guess that makes sense as Turn() operates the same way now that I think about it.