Adds canvas support to picture frames

This commit is contained in:
Tastyfish
2016-02-22 20:24:57 -05:00
parent 9b80f20ba7
commit eff33023d0
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -116,8 +116,10 @@ var/global/list/globalBlankCanvases[AMT_OF_CANVASES]
//Drawing one pixel with a crayon
if(istype(I, /obj/item/toy/crayon))
var/obj/item/toy/crayon/C = I
if(masterpiece.GetPixel(pixX, pixY)) // if the located pixel isn't blank (null))
var/pix = masterpiece.GetPixel(pixX, pixY)
if(pix && pix != C.colour) // if the located pixel isn't blank (null))
DrawPixelOn(C.colour, pixX, pixY)
qdel(masterpiece)
return
..()