skip color hexa when parsing for real this time

This commit is contained in:
hugogogo
2021-07-25 13:59:18 +02:00
parent 9cfb43e7da
commit a429813165
6 changed files with 17 additions and 5 deletions

View File

@@ -2,7 +2,9 @@
/*
** U -> up wiew
** I -> isometric view
** I -> isometric original view
** O -> increase altitude
** P -> decrease altitude
** F -> fit to window
** C -> center
*/
@@ -17,8 +19,18 @@ void keypress_more(int keycode, t_fdf *fdf)
}
else if (keycode == I)
{
fdf->rot_x = -30;
fdf->rot_y = -60;
fdf->rot_x = -45;
fdf->rot_y = -35;
fdf->mov_x = (fdf->win_size_x - fdf->map_size_x) / 2;
fdf->mov_y = (fdf->win_size_y - fdf->map_size_y) / 2;
fdf->zoom = 0;
}
else if (keycode == O)
fdf->altitude++;
else if (keycode == P)
{
if (fdf->altitude > 1)
fdf->altitude--;
}
}