From a88d05819e1daebbde8525e229d19a5e87295c20 Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Tue, 14 Sep 2010 17:31:48 +0000 Subject: [PATCH] Added a config.txt option to manually designate a server address, as the current world.address method doesn't work right. Fixed a runtime error I noticed in login.dm git-svn-id: http://tgstation13.googlecode.com/svn/trunk@100 316c924e-a436-60f5-8080-3fe189b3f50e --- code/datums/configuration.dm | 5 +++++ code/game/cellautomata.dm | 5 ++++- code/modules/mob/living/silicon/decoy/death.dm | 2 +- code/modules/mob/login.dm | 2 +- config/config.txt | 3 +++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/code/datums/configuration.dm b/code/datums/configuration.dm index 69e99c3000..7d3da6f6b4 100644 --- a/code/datums/configuration.dm +++ b/code/datums/configuration.dm @@ -31,6 +31,8 @@ var/hostedby = null var/respawn = 1 + var/server + /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode for (var/T in L) @@ -156,6 +158,9 @@ if ("hostedby") config.hostedby = value + if ("server") + config.server = value + if ("probability") var/prob_pos = findtext(value, " ") var/prob_name = null diff --git a/code/game/cellautomata.dm b/code/game/cellautomata.dm index c917c324f4..bd0af3a427 100644 --- a/code/game/cellautomata.dm +++ b/code/game/cellautomata.dm @@ -128,7 +128,10 @@ // M << sound('NewRound.ogg') for(var/client/C) - C << link("byond://[world.address]:[world.port]") + if (config.server) //if you set a server location in config.txt, it sends you there instead of trying to reconnect to the same world address. -- NeoFite + C <