about summary refs log tree commit diff
path: root/src/game/g_game.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-20 00:46:31 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-20 00:46:31 +0000
commit5f0af103c6bcbd4ae7c00ef9de1df1524b892e60 (patch)
treee7e7d356f101a3beb62654edb400fac6a396e799 /src/game/g_game.cpp
parent1a6a2881340e7f903a1b872fb961fc399a4bc41b (diff)
downloadzcatch-5f0af103c6bcbd4ae7c00ef9de1df1524b892e60.tar.gz
zcatch-5f0af103c6bcbd4ae7c00ef9de1df1524b892e60.zip
more hook fixes
Diffstat (limited to 'src/game/g_game.cpp')
-rw-r--r--src/game/g_game.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/g_game.cpp b/src/game/g_game.cpp
index 4d534fed..8b3719b5 100644
--- a/src/game/g_game.cpp
+++ b/src/game/g_game.cpp
@@ -240,7 +240,7 @@ void player_core::tick()
 		if(hook_state == HOOK_IDLE)
 		{
 			hook_state = HOOK_FLYING;
-			hook_pos = pos;
+			hook_pos = pos+direction*phys_size*0.75f;
 			hook_dir = direction;
 			hooked_player = -1;
 			hook_tick = 0;
@@ -275,13 +275,6 @@ void player_core::tick()
 				vec2 closest_point = closest_point_on_line(hook_pos, new_pos, p->pos);
 				if(distance(p->pos, closest_point) < phys_size+4.0f)
 				{
-					dbg_msg("", "state=%d p0=%f,%f p1=%f,%f t=%f,%f c=%f,%f",
-						hook_state,
-						hook_pos.x, hook_pos.y,
-						new_pos.x, new_pos.y,
-						p->pos.x, p->pos.y,
-						closest_point.x, closest_point.y
-						);
 					triggered_events |= COREEVENT_HOOK_ATTACH_PLAYER;
 					hook_state = HOOK_GRABBED;
 					hooked_player = i;