From bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a Mon Sep 17 00:00:00 2001 From: realtradam Date: Tue, 30 May 2023 04:38:48 -0400 Subject: remove printing --- src/player.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/player.c b/src/player.c index 9d1e01e..56fdb98 100644 --- a/src/player.c +++ b/src/player.c @@ -153,15 +153,10 @@ parse_player_input(void) (*(float*)units_move_right_input(NULL, NULL) + *(float*)units_move_left_input(NULL, NULL)), (*(float*)units_move_down_input(NULL, NULL) + *(float*)units_move_up_input(NULL, NULL)) }; - if(glm_vec2_norm(inputs) > 1) + if(glm_vec2_norm2(inputs) > 1) { glm_vec2_normalize(inputs); } - rodeo_log( - rodeo_logLevel_info, - "%f, %f", - inputs[0], inputs[1] - ); player_position->dx = inputs[0] * (rodeo_frame_time_get() / (1000.0f/60.0f) * ((60.0f - (float)player.sprite.iter) / 60.0f)) * 7; player_position->dy = inputs[1] * (rodeo_frame_time_get() / (1000.0f/60.0f) * ((60.0f - (float)player.sprite.iter) / 60.0f)) * 7; -- cgit v1.2.3