about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-17 00:27:41 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-17 00:27:41 +0000
commita6aec9e0cd6901ce8cddef57f876626f9e3de7eb (patch)
tree5eac05f39b5f1eef68de420161c337acbc4e684b /src/game/client
parent64dd53133ce51c4c699d12618d1af2a478e102f9 (diff)
downloadzcatch-a6aec9e0cd6901ce8cddef57f876626f9e3de7eb.tar.gz
zcatch-a6aec9e0cd6901ce8cddef57f876626f9e3de7eb.zip
added the ability to kick players
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gc_client.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index 51598306..ed31d5a0 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -1940,12 +1940,6 @@ void render_spectators(float x, float y, float w)
 
 void render_scoreboard(float x, float y, float w, int team, const char *title)
 {
-	//float w = 550.0f;
-	//float x = width/2-w/2;
-	//;
-	//float y = ystart;
-	//float w = 550.0f;
-
 	animstate idlestate;
 	anim_eval(&data->animations[ANIM_BASE], 0, &idlestate);
 	anim_eval_add(&idlestate, &data->animations[ANIM_IDLE], 0, 1.0f);
@@ -2057,7 +2051,14 @@ void render_scoreboard(float x, float y, float w, int team, const char *title)
 
 		sprintf(buf, "%4d", info->score);
 		gfx_pretty_text(x+60-gfx_pretty_text_width(font_size,buf,-1), y, font_size, buf, -1);
-		gfx_pretty_text(x+128, y, font_size, client_datas[info->clientid].name, -1);
+		
+		if(config.cl_show_player_ids)
+		{
+			sprintf(buf, "%d | %s", info->clientid, client_datas[info->clientid].name);
+			gfx_pretty_text(x+128, y, font_size, buf, -1);
+		}
+		else
+			gfx_pretty_text(x+128, y, font_size, client_datas[info->clientid].name, -1);
 
 		sprintf(buf, "%4d", info->latency);
 		float tw = gfx_pretty_text_width(font_size, buf, -1);