Browse Source

fixes

master
nicolas-arnaud 2 years ago
parent
commit
ce31c0a762
  1. 2
      src/mlx/mlx_1.c
  2. 2
      src/parsing/getline.c

2
src/mlx/mlx_1.c

@ -35,7 +35,7 @@ int mouse_move_hook(int x, int y, t_env *env)
(void)y;
dx = WIN_X_SZ / 2 - x;
if (dx)
env->playerDir = dvec_rot(env->playerDir,
env->player_dir = dvec_rot(env->player_dir,
(double)(-M_PI * dx / 1800.0), 1);
mlx_mouse_move(env->mlx, env->win, WIN_X_SZ / 2, WIN_Y_SZ / 2);
return (1);

2
src/parsing/getline.c

@ -30,7 +30,7 @@ char *save_buffer(char *buffer, int *i)
return (part1);
}
}
part1[4097] = 0;
part1[4096] = 0;
part2 = save_buffer(buffer, i);
ret = ft_strjoin(part1, part2);
free(part1);

Loading…
Cancel
Save