skip color hexa when parsing for real this time
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user