about summary refs log tree commit diff
path: root/src/game/client/gc_client.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-16 23:33:40 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-16 23:33:40 +0000
commit6a1d49fd9aa46d8a495f49b185f08252ba511763 (patch)
tree15f9a6acf5ec133013bb7024ad87b936154a5c98 /src/game/client/gc_client.cpp
parentc3320e9d07ff821cde4557747d3740edd62a29a2 (diff)
downloadzcatch-6a1d49fd9aa46d8a495f49b185f08252ba511763.tar.gz
zcatch-6a1d49fd9aa46d8a495f49b185f08252ba511763.zip
fixed the flag in scoreboard aswell
Diffstat (limited to 'src/game/client/gc_client.cpp')
-rw-r--r--src/game/client/gc_client.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index 0de6c240..e931c031 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -2049,7 +2049,23 @@ void render_scoreboard(float x, float y, float w, int team, const char *title)
 		gfx_pretty_text(x+w-tw-35, y, font_size, buf, -1);
 
 		// render avatar
+		if((flags[0] && flags[0]->carried_by == info->clientid) || (flags[1] && flags[1]->carried_by == info->clientid))
+		{
+			gfx_blend_normal();
+			gfx_texture_set(data->images[IMAGE_GAME].id);
+			gfx_quads_begin();
+
+			if(info->team == 0) select_sprite(SPRITE_FLAG_BLUE, SPRITE_FLAG_FLIP_X);
+			else select_sprite(SPRITE_FLAG_RED, SPRITE_FLAG_FLIP_X);
+			
+			float size = 64.0f;
+			gfx_quads_drawTL(x+55, y-15, size/2, size);
+			gfx_quads_end();
+		}
+		
 		render_tee(&idlestate, &client_datas[info->clientid].skin_info, EMOTE_NORMAL, vec2(1,0), vec2(x+90, y+28));
+
+		
 		y += 50.0f;
 	}
 }