diff --git a/.gitignore b/.gitignore index 96a36db9661..f99cbf82646 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ cfg/ build_log.txt /.atom-build.json +.vscode/ diff --git a/code/modules/client/preference_setup/preferences_sql.dm b/code/modules/client/preference_setup/preferences_sql.dm index ebc48cb29b6..6d8f153d3ce 100644 --- a/code/modules/client/preference_setup/preferences_sql.dm +++ b/code/modules/client/preference_setup/preferences_sql.dm @@ -1,6 +1,5 @@ // Set this to 1 if you want to debug the SQL saves. // I got tired as hell from writing these debug lines and deleting them later. -#define SQL_PREF_DEBUG 0 /* * A proc for dynamically loading a character from the database. @@ -103,13 +102,13 @@ log_debug("SQL CHARACTER LOAD: SQL query error: [query.ErrorMsg()]") log_debug("SQL CHARACTER LOAD: query args: [json_encode(arg_list)]") + continue + #ifdef SQL_PREF_DEBUG else log_debug("SQL CHARACTER LOAD: Successfully executed query: [query_text]") #endif - continue - // Each query should only return exactly 1 row. var/list/var_names = query_cache[type][query_text] if (query.NextRow()) @@ -258,5 +257,3 @@ arg_list |= PI.gather_save_parameters() return arg_list - -#undef SQL_PREF_DEBUG