Creating a buffer icon to Blend things to fails to generate anything.
Numbered Steps to Reproduce Problem:
use the following code.
Code Snippet (if applicable) to Reproduce Problem:
mob/Login()
var/icon/buffer = new
var/icon/A = icon('sprites.dmi',"black")
var/icon/B = icon('sprites.dmi',"white")
buffer.Blend(A,ICON_OVERLAY)
buffer.Blend(B,ICON_OVERLAY)
fcopy(buffer,"Success.dmi")
Expected Results:
The buffer icon to get the contents of the others.
Actual Results:
Nothing was ever applied
Does the problem occur:
Every time? Or how often? Always
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
If I define a buffer with some sort of icon to start with.
Example:
mob/Login()
var/icon/buffer = new('blankspace.dmi')
var/icon/A = icon('sprites.dmi',"black")
var/icon/B = icon('sprites.dmi',"white")
buffer.Blend(A,ICON_OVERLAY)
buffer.Blend(B,ICON_OVERLAY)
fcopy(buffer,"Success.dmi")
Workarounds:
Use the other script I shown, by making the buffer start with an icon.