unused M errors (reverted from commit 55614bb2a6)

This commit is contained in:
Bedshaped
2016-10-15 23:46:59 +01:00
parent 55614bb2a6
commit 0b5e0b7961
2 changed files with 6 additions and 4 deletions

View File

@@ -33,7 +33,8 @@
if(panel_open)
if(istype(I, /obj/item/device/multitool))
I.buffer = src
var/obj/item/device/multitool/M = I
M.buffer = src
user << "<span class='caution'>You save the data in the [I.name]'s buffer.</span>"
else
if(istype(I, /obj/item/device/multitool))

View File

@@ -66,9 +66,10 @@
W.loc = src
user.visible_message("[user] inserts [W] into \the [src]'s GPS device slot.", "<span class='notice'>You insert [W] into \the [src]'s GPS device slot.</span>")
else if(istype(W, /obj/item/device/multitool))
if(W.buffer && istype(W.buffer, /obj/machinery/telepad))
telepad = W.buffer
W.buffer = null
var/obj/item/device/multitool/M = W
if(M.buffer && istype(M.buffer, /obj/machinery/telepad))
telepad = M.buffer
M.buffer = null
user << "<span class='caution'>You upload the data from the [W.name]'s buffer.</span>"
else
..()