about summary refs log tree commit diff
path: root/src/game/client/menu.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-04 00:19:41 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-04 00:19:41 +0000
commitdaf89a01ff88c7771f0c252808de2b3eede23927 (patch)
tree903c034b9713a61c21e4d052fd7068afda9acacf /src/game/client/menu.cpp
parentf724ab006c3ca882c3a66c6af0df60d666610895 (diff)
downloadzcatch-daf89a01ff88c7771f0c252808de2b3eede23927.tar.gz
zcatch-daf89a01ff88c7771f0c252808de2b3eede23927.zip
added skins, tweaked prediction like hell
Diffstat (limited to 'src/game/client/menu.cpp')
-rw-r--r--src/game/client/menu.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index 48f7147c..afcb1cfe 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -1303,7 +1303,7 @@ static int settings_sound_render()
 }
 
 extern void draw_round_rect(float x, float y, float w, float h, float r);
-void send_changename_request(const char *name);
+extern void send_info(bool);
 
 static int settings_render(bool ingame)
 {
@@ -1344,10 +1344,13 @@ static int settings_render(bool ingame)
 	if (ui_do_button(&save_button, "Save", 0, 482, 490, 128, 48, draw_teewars_button, 0))
 	{
 		// did we change our name?
-		if (ingame && strcmp(config.player_name, config_copy.player_name) != 0)
-			send_changename_request(config_copy.player_name);
+		bool name_changed = strcmp(config.player_name, config_copy.player_name) != 0;
 
 		config = config_copy;
+
+		if (ingame && name_changed)
+			send_info(false);
+
 #ifdef CONF_PLATFORM_MACOSX
 		config_save("~/.teewars");
 #else