about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-11 08:24:59 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-02-11 08:24:59 +0000
commit2185df925409cd400bfbe75fa181794773b3c73b (patch)
tree72dc432d4e548067b68d3cab8432204dfb40231a /src
parent548a919ea379a3b9d1d9e41cf4dad6b4779fd3e6 (diff)
downloadzcatch-2185df925409cd400bfbe75fa181794773b3c73b.tar.gz
zcatch-2185df925409cd400bfbe75fa181794773b3c73b.zip
shadow on the console. respect sv_sendheartbeats
Diffstat (limited to 'src')
-rw-r--r--src/engine/server/es_register.c4
-rw-r--r--src/game/client/gc_console.cpp17
2 files changed, 19 insertions, 2 deletions
diff --git a/src/engine/server/es_register.c b/src/engine/server/es_register.c
index c7f4bcc9..65c56821 100644
--- a/src/engine/server/es_register.c
+++ b/src/engine/server/es_register.c
@@ -87,6 +87,10 @@ void register_update()
 {
 	int64 now = time_get();
 	int64 freq = time_freq();
+	
+	if(!config.sv_sendheartbeats)
+		return;
+	
 	mastersrv_update();
 	
 	if(register_state == REGISTERSTATE_START)
diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp
index 1f596e79..fffe61ab 100644
--- a/src/game/client/gc_console.cpp
+++ b/src/game/client/gc_console.cpp
@@ -262,7 +262,17 @@ void console_render()
 
 	gfx_mapscreen(screen.x, screen.y, screen.w, screen.h);
 
+	// do shadow
+	gfx_texture_set(-1);
+    gfx_quads_begin();
+    gfx_setcolorvertex(0, 0,0,0, 0.5f);
+    gfx_setcolorvertex(1, 0,0,0, 0.5f);
+    gfx_setcolorvertex(2, 0,0,0, 0.0f);
+    gfx_setcolorvertex(3, 0,0,0, 0.0f);
+    gfx_quads_drawTL(0,console_height,screen.w,10.0f);
+    gfx_quads_end();
 
+	// do background
 	gfx_texture_set(data->images[IMAGE_CONSOLE_BG].id);
     gfx_quads_begin();
     gfx_setcolor(0.2f, 0.2f, 0.2f,0.9f);
@@ -270,18 +280,21 @@ void console_render()
     gfx_quads_drawTL(0,0,screen.w,console_height);
     gfx_quads_end();
 
+	// do the lower bar
 	gfx_texture_set(data->images[IMAGE_CONSOLE_BAR].id);
     gfx_quads_begin();
     gfx_setcolor(1.0f, 1.0f, 1.0f, 0.9f);
     gfx_quads_setsubset(0,0.1f,screen.w*0.015f,1-0.1f);
     gfx_quads_drawTL(0,console_height-10.0f,screen.w,10.0f);
     gfx_quads_end();
+
+
     
     console_height -= 10.0f;
 
 	{
-		float font_size = 12.0f;
-		float row_height = font_size*1.4f;
+		float font_size = 10.0f;
+		float row_height = font_size*1.25f;
 		float width = gfx_text_width(0, font_size, console_input, -1);
 		float x = 3, y = console_height - row_height - 2;
 		float prompt_width = gfx_text_width(0, font_size, ">", -1)+2;