/tg/ 4/14 (#367)

* outside code stuff

* defines, helpers, etc

* everything not module

* modules

* compiled fixes + missing sounds
This commit is contained in:
Poojawa
2017-04-14 23:28:04 -05:00
committed by GitHub
parent 884fb45516
commit 9e72b1b8fd
170 changed files with 4916 additions and 1221 deletions
+3 -23
View File
@@ -35,7 +35,7 @@
GLOB.changelog_hash = md5('html/changelog.html') //used for telling if the changelog has changed recently
make_datum_references_lists() //initialises global lists for referencing frequently used datums (so that we only ever do it once)
load_configuration()
config = new
GLOB.revdata.DownloadPRDetails()
load_mode()
load_motd()
@@ -65,7 +65,7 @@
GLOB.diary << "TOPIC: \"[T]\", from:[addr], master:[master], key:[key]"
var/list/input = params2list(T)
var/key_valid = (GLOB.comms_allowed && input["key"] == GLOB.comms_key)
var/key_valid = (global.comms_allowed && input["key"] == global.comms_key)
var/static/last_irc_status = 0
if("ping" in input)
@@ -211,14 +211,6 @@
/world/proc/OnReboot(reason, feedback_c, feedback_r, round_end_sound_sent)
feedback_set_details("[feedback_c]","[feedback_r]")
log_game("<span class='boldannounce'>Rebooting World. [reason]</span>")
#ifdef dellogging
var/log = file("data/logs/del.log")
log << time2text(world.realtime)
for(var/index in del_counter)
var/count = del_counter[index]
if(count > 10)
log << "#[count]\t[index]"
#endif
if(GLOB.blackbox)
GLOB.blackbox.save_all_data_to_sql()
Master.Shutdown() //run SS shutdowns
@@ -273,18 +265,6 @@
/world/proc/load_motd()
GLOB.join_motd = file2text("config/motd.txt") + "<br>" + GLOB.revdata.GetTestMergeInfo()
/world/proc/load_configuration()
config = new /datum/configuration()
config.load("config/config.txt")
config.load("config/game_options.txt","game_options")
config.loadsql("config/dbconfig.txt")
if (config.maprotation)
config.loadmaplist("config/maps.txt")
// apply some settings from config..
GLOB.abandon_allowed = config.respawn
/world/proc/update_status()
var/s = ""
@@ -334,4 +314,4 @@
if (features)
s += ": [jointext(features, ", ")]"
status = s
status = s