mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
removed some debugging code
This commit is contained in:
parent
980e4885f0
commit
a950501b22
|
@ -275,13 +275,6 @@ void player_core::tick()
|
||||||
vec2 closest_point = closest_point_on_line(hook_pos, new_pos, p->pos);
|
vec2 closest_point = closest_point_on_line(hook_pos, new_pos, p->pos);
|
||||||
if(distance(p->pos, closest_point) < phys_size+2.0f)
|
if(distance(p->pos, closest_point) < phys_size+2.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;
|
triggered_events |= COREEVENT_HOOK_ATTACH_PLAYER;
|
||||||
hook_state = HOOK_GRABBED;
|
hook_state = HOOK_GRABBED;
|
||||||
hooked_player = i;
|
hooked_player = i;
|
||||||
|
|
Loading…
Reference in a new issue