about summary refs log tree commit diff
path: root/src/game/client/gc_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/gc_client.cpp')
-rw-r--r--src/game/client/gc_client.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index 6d97cbb7..69ddc7c9 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -74,6 +74,10 @@ void client_data::update_render_info()
 }
 
 
+// broadcasts
+char broadcast_text[1024] = {0};
+int64 broadcast_time = 0;
+
 void snd_play_random(int chn, int setid, float vol, vec2 pos)
 {
 	soundset *set = &data->sounds[setid];
@@ -1523,8 +1527,6 @@ void render_game()
 		render_spectators(width/2-w/2, 150+750+25+50+25, w);
 	}
 	
-	
-	
 	{
 		gfx_mapscreen(0, 0, 300*gfx_screenaspect(), 300);
 
@@ -1535,6 +1537,12 @@ void render_game()
 			gfx_text(0, 150*gfx_screenaspect()-w/2, 50, 24, text, -1);
 		}
 		
+		if(time_get() < broadcast_time+time_freq()*5)
+		{
+			float w = gfx_text_width(0, 16, broadcast_text, -1);
+			gfx_text(0, 150*gfx_screenaspect()-w/2, 50, 16, broadcast_text, -1);
+		}
+		
 		tuning_params standard_tuning;
 
 		// render warning about non standard tuning