mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
#endif
|
||||
|
||||
for (var/query_text in query_cache[type])
|
||||
var/DBQuery/query = dbcon.NewQuery(query_text)
|
||||
var/DBQuery/query = GLOB.dbcon.NewQuery(query_text)
|
||||
query.Execute(arg_list)
|
||||
if (query.ErrorMsg())
|
||||
log_world("ERROR: SQL CHARACTER LOAD: SQL query error: [query.ErrorMsg()]")
|
||||
@@ -211,7 +211,7 @@
|
||||
// Typecast the collection so we can access its preferences var.
|
||||
var/datum/category_collection/player_setup_collection/cc = collection
|
||||
for (var/query_text in query_cache[type])
|
||||
var/DBQuery/query = dbcon.NewQuery(query_text)
|
||||
var/DBQuery/query = GLOB.dbcon.NewQuery(query_text)
|
||||
query.Execute(arg_list)
|
||||
|
||||
if (query.ErrorMsg())
|
||||
@@ -228,7 +228,7 @@
|
||||
if ((role_type & SQL_CHARACTER) && !cc.preferences.current_character)
|
||||
// No current character, means we're doing insert queries.
|
||||
// Quickly nab the new ID and substitute it within the args.
|
||||
query = dbcon.NewQuery("SELECT LAST_INSERT_ID() AS new_id")
|
||||
query = GLOB.dbcon.NewQuery("SELECT LAST_INSERT_ID() AS new_id")
|
||||
query.Execute()
|
||||
|
||||
if (query.NextRow())
|
||||
|
||||
Reference in New Issue
Block a user