tweakfixes to finances

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2013-02-27 11:55:28 +10:00
parent 2b3a21bc17
commit 43ebfd1fdd
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ var/global/obj/machinery/account_database/centcomm_account_db
dat += "Confirm identity: <a href='?src=\ref[src];choice=insert_card'>[held_card ? held_card : "-----"]</a><br>"
if(access_level > 0)
dat += "<a href='?src=\ref[src];toggle_activated=1'>Toggle remote access to this database (warning!)</a>"
dat += "<a href='?src=\ref[src];toggle_activated=1'>[activated ? "Disable" : "Enable"] remote access</a><br>"
dat += "You may not edit accounts at this terminal, only create and view them.<br>"
if(creating_new_account)
dat += "<br>"

View File

@@ -43,7 +43,7 @@ log transactions
if(stat & NOPOWER)
return
if(linked_db && linked_db.stat & NOPOWER)
if(linked_db && ( !(linked_db.stat & NOPOWER) || !linked_db.activated) )
linked_db = null
authenticated_account = null
src.visible_message("\red \icon[src] [src] buzzes rudely, \"Connection to remote database lost.\"")
@@ -68,7 +68,7 @@ log transactions
/obj/machinery/atm/proc/reconnect_database()
for(var/obj/machinery/account_database/DB in world)
if(DB.z == src.z && !DB.stat & NOPOWER)
if(DB.z == src.z && ( !(DB.stat & NOPOWER) || !linked_db.activated) )
linked_db = DB
break