Skip to content

Commit

Permalink
Updating Game Info Curling
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Schaffner committed Aug 23, 2024
1 parent c13c188 commit 51ab804
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2246,10 +2246,17 @@ fn_info_game_wf() {
# Comment: //
# Filetype: cfg
fn_info_game_xnt() {
maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}"
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "adminpassword" "rconpassword"
fn_info_game_ini "port" "port"
fn_info_game_ini "servername" "hostname"
fn_info_game_ini "maxplayers" "maxplayers"
else
maxplayers="${maxplayers:-"8"}"
port="${port:-"2600"}"
adminpassword="${rconpassword:-"NOT SET"}"
servername="${servername:-"NOT SET"}"
fi
}

fn_info_game_wmc() {
Expand Down

0 comments on commit 51ab804

Please sign in to comment.