mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
Adds canvas support to picture frames
This commit is contained in:
@@ -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
|
||||
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user