Merge pull request #20 from SkyMarshal/patch-3

Fixes EFTPOS units failing to connect to account DB.
This commit is contained in:
SkyMarshal
2013-09-13 21:14:31 -07:00
@@ -70,8 +70,12 @@
D.name = "small parcel - 'EFTPOS access code'"
/obj/item/device/eftpos/proc/reconnect_database()
for(var/obj/machinery/account_database/DB in world) //Hotfix until someone finds out why it isn't in 'machines'
if(DB.z == src.z)
var/turf/location = get_turf(src)
if(!location)
return
for(var/obj/machinery/account_database/DB in machines) //Hotfix until someone finds out why it isn't in 'machines'
if(DB.z == location.z)
linked_db = DB
break
@@ -239,4 +243,4 @@
else
..()
//emag?
//emag?