diff --git a/apps/demos/scenery/scenes/ingame.c b/apps/demos/scenery/scenes/ingame.c index 551ae47..54412b6 100644 --- a/apps/demos/scenery/scenes/ingame.c +++ b/apps/demos/scenery/scenes/ingame.c @@ -84,7 +84,6 @@ static void process_ground_mode(State *state) { float height = (height0 * weight0 + height1 * weight1 + height2 * weight2) / (weight0 + weight1 + weight2); - if (target.y > height + PLAYER_HEIGHT) target.y = target.y - 0.4f; @@ -109,10 +108,7 @@ static void process_ground_mode(State *state) { if (input_action_pressed("player_backward")) direction = m_vec_sub(direction, m_vec_scale(dir_and_up.direction, speed)); - while (vec3_length(direction) > 0) { - target = m_vec_add(target, direction); - break; - } + target = m_vec_add(target, direction); } /* interpolate */