ID:148386
 
heres my mouse drop code
turf/MouseDrop(turf/a,turf/b)
var/client/C
if(usr.building)
if(usr.client)
C = usr.client
else

return
C.images -= Q
for(var/turf/T in block(a,b))
new usr.buildtype(T)
C.images -= T.Q

I want to add a delete portion
turf/MouseDrop(turf/a,turf/b)
var/client/C
if(usr.building)
if(usr.client)
C = usr.client
else

return
C.images -= Q
for(var/turf/T in block(a,b))
new usr.buildtype(T)
C.images -= T.Q
if(usr.delete)
if(usr.client)
C = usr.client
else

return
C.images -= Q
for(var/turf/T in block(a,b))
del(T)
C.images -= T.Q
else
return


but this didnt work, any suggestions? im stumped

ETG