about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-21 19:09:09 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-21 19:09:09 +0000
commite21b6983abaefd0037435c76e9b41cfbbfbe51d5 (patch)
treecd192dd56b3d6753f961dc1a73626932053f311d /src/game/server
parent46b440d1f3c2715182b52ad02a80122f03ec2d41 (diff)
downloadzcatch-e21b6983abaefd0037435c76e9b41cfbbfbe51d5.tar.gz
zcatch-e21b6983abaefd0037435c76e9b41cfbbfbe51d5.zip
clean it up a bit
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/hooks.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 640fab4c..41058dd1 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -38,35 +38,12 @@ void mods_client_direct_input(int client_id, void *input)
 {
 	if(!game.world.paused)
 		game.players[client_id].on_direct_input((NETOBJ_PLAYER_INPUT *)input);
-	
-	/*
-	if(i->fire)
-	{
-		msg_pack_start(MSG_EXTRA_PROJECTILE, 0);
-		msg_pack_end();
-		server_send_msg(client_id);
-	}*/
 }
 
 void mods_client_predicted_input(int client_id, void *input)
 {
 	if(!game.world.paused)
 		game.players[client_id].on_predicted_input((NETOBJ_PLAYER_INPUT *)input);
-	
-	/*
-	{
-		
-		on_predicted_input()
-		if (memcmp(&game.players[client_id].input, input, sizeof(NETOBJ_PLAYER_INPUT)) != 0)
-			game.players[client_id].last_action = server_tick();
-
-		//game.players[client_id].previnput = game.players[client_id].input;
-		game.players[client_id].input = *(NETOBJ_PLAYER_INPUT*)input;
-		game.players[client_id].num_inputs++;
-		
-		if(game.players[client_id].input.target_x == 0 && game.players[client_id].input.target_y == 0)
-			game.players[client_id].input.target_y = -1;
-	}*/
 }
 
 // Server hooks
@@ -399,6 +376,7 @@ void mods_shutdown()
 {
 	delete game.controller;
 	game.controller = 0;
+	game.clear();
 }
 
 void mods_presnap() {}