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 <