about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 09:16:03 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 09:16:03 +0000
commit5fa862c8d4c5bf1a96c5f0d9b5234f38550c7d8c (patch)
treeb1bb5f72867c234fb49a006ccb5e98633934604d /src
parent711aa0db763e31bd7916ea31f5f3f934e4000ab8 (diff)
downloadzcatch-5fa862c8d4c5bf1a96c5f0d9b5234f38550c7d8c.tar.gz
zcatch-5fa862c8d4c5bf1a96c5f0d9b5234f38550c7d8c.zip
fixed so that the host address field is saved between launches
Diffstat (limited to 'src')
-rw-r--r--src/game/client/menu2.cpp2
-rw-r--r--src/game/game_variables.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/menu2.cpp b/src/game/client/menu2.cpp
index 2e44df6b..0527e15f 100644
--- a/src/game/client/menu2.cpp
+++ b/src/game/client/menu2.cpp
@@ -922,7 +922,7 @@ static void menu2_render_serverbrowser(RECT main_view)
 		ui2_hsplit_t(&toolbox, 20.0f, &button, &toolbox);
 		ui2_do_label(&button, "Host address:", 18, -1);
 		ui2_vsplit_l(&button, 100.0f, 0, &button);
-		ui2_do_edit_box(&address, &button, address, sizeof(address));
+		ui2_do_edit_box(&address, &button, config.ui_server_address, sizeof(config.ui_server_address));
 	}
 }
 
diff --git a/src/game/game_variables.h b/src/game/game_variables.h
index 5dd5cf33..3f779730 100644
--- a/src/game/game_variables.h
+++ b/src/game/game_variables.h
@@ -45,6 +45,8 @@ MACRO_CONFIG_STR(player_skin, 64, "default")
 MACRO_CONFIG_INT(dbg_new_gui, 0, 0, 1)
 
 MACRO_CONFIG_INT(ui_page, 0, 0, 5)
+MACRO_CONFIG_STR(ui_server_address, 128, "localhost:8303")
+
 
 MACRO_CONFIG_STR(sv_msg, 512, "")