about summary refs log tree commit diff
path: root/src/engine/client/ec_client.c
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-19 09:10:55 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-19 09:10:55 +0000
commit119b5af3d31b6d5e61948b1bd33ef96f46806d6e (patch)
tree1fd2b4c6f98a9fe297ef384f308715f3f907a997 /src/engine/client/ec_client.c
parent1a28f88e72d581148e56e3e96895fd350e69a016 (diff)
downloadzcatch-119b5af3d31b6d5e61948b1bd33ef96f46806d6e.tar.gz
zcatch-119b5af3d31b6d5e61948b1bd33ef96f46806d6e.zip
fixed a lot of network troubles
Diffstat (limited to 'src/engine/client/ec_client.c')
-rw-r--r--src/engine/client/ec_client.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c
index 188200da..23790068 100644
--- a/src/engine/client/ec_client.c
+++ b/src/engine/client/ec_client.c
@@ -317,9 +317,9 @@ int client_send_msg()
 	packet.data_size = info->size;
 
 	if(info->flags&MSGFLAG_VITAL)
-		packet.flags = NETSENDFLAG_VITAL;
+		packet.flags |= NETSENDFLAG_VITAL;
 	if(info->flags&MSGFLAG_FLUSH)
-		packet.flags = NETSENDFLAG_FLUSH;
+		packet.flags |= NETSENDFLAG_FLUSH;
 		
 	if(info->flags&MSGFLAG_RECORD)
 	{
@@ -398,8 +398,6 @@ void client_direct_input(int *input, int size)
 		
 	msg_pack_end();
 	client_send_msg();
-	
-	dbg_msg("client", "sent direct input");
 }
 
 
@@ -1675,7 +1673,7 @@ static void client_run()
 		
 		if(reporttime < time_get())
 		{
-			if(config.debug)
+			if(0 && config.debug)
 			{
 				dbg_msg("client/report", "fps=%.02f (%.02f %.02f) netstate=%d",
 					frames/(float)(reportinterval/time_freq()),
@@ -1843,7 +1841,6 @@ int main(int argc, char **argv)
 	dbg_msg("client", "starting...");
 	engine_init("Teeworlds");
 	
-	
 	/* register all console commands */
 	client_register_commands();
 	modc_console_init();