Compatibility patch

Replaces instances of establish_db_connection() with establish_db_connection(dbcon).
This commit is contained in:
skull132
2016-03-24 20:34:45 +02:00
parent c030c62807
commit 4be6656e96
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -12,7 +12,7 @@
var/datum/preferences/D = preferences_datums[ckey]
if(D == src)
log_debug("Ckey is [ckey]")
establish_db_connection()
establish_db_connection(dbcon)
if(!dbcon.IsConnected())
return 0
else
@@ -54,7 +54,7 @@
return 0
/datum/preferences/proc/SQLload_character(var/slot, var/pckey)
establish_db_connection()
establish_db_connection(dbcon)
if(!dbcon.IsConnected())
return 0
char_slot = slot
@@ -631,7 +631,7 @@
/datum/preferences/proc/LoadPrefData(var/ckey)
log_debug("load pref data")
establish_db_connection()
establish_db_connection(dbcon)
if(!dbcon.IsConnected())
return 0
TextQuery = "SELECT * FROM player_preferences WHERE ckey = '[ckey]'"
@@ -729,4 +729,4 @@
if(!citizenship) citizenship = "None"
if(!faction) faction = "None"
if(!religion) religion = "None"
return 1
return 1