Skip to content

Commit

Permalink
Now properly sets tv_port option as start argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lenosisnickerboa committed Nov 1, 2020
1 parent 937b4dd commit 53f5395
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server_support.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ proc GetStartServerCommand {} {
set serverPortOption "-port $serverPort"
}

global gotvConfig
set tvPortOption ""
set goTvEnable [GetConfigValue $gotvConfig gotvenable]
if { $goTvEnable != 0 } {
set goTvPort [GetConfigValue $gotvConfig gotvport]
set tvPortOption "+tv_port $goTvPort"
}

global runConfig
set gameModeTypeString [GetConfigValue $runConfig gamemodetype]
global gameModeMapper
Expand Down Expand Up @@ -224,6 +232,7 @@ proc GetStartServerCommand {} {
$serverNetPortTry \
-maxplayers_override $players \
-tickrate $tickRate \
$tvPortOption \
$passwordOption \
$ipOption \
+hostname \"$serverName\" $serverPortOption $serverLanOption \
Expand All @@ -239,6 +248,7 @@ proc GetStartServerCommand {} {
$autoServerUpdateOption \
-maxplayers_override $players \
-tickrate $tickRate \
$tvPortOption \
$passwordOption \
$ipOption \
+hostname \\\"$serverName\\\" $serverPortOption $serverLanOption \
Expand Down

0 comments on commit 53f5395

Please sign in to comment.