This commit is contained in:
Volodymyr Patuta 2021-01-03 05:13:12 +01:00
parent 793f399618
commit e047b2f190

View File

@ -437,90 +437,90 @@ void key(int keycode) {
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_1: case GL4DK_1:
_p = 1; _p = 1;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_2: case GL4DK_2:
_p = 2; _p = 2;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_3: case GL4DK_3:
_p = 3; _p = 3;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_4: case GL4DK_4:
_p = 4; _p = 4;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_5: case GL4DK_5:
_p = 5; _p = 5;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_6: case GL4DK_6:
_p = 6; _p = 6;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_7: case GL4DK_7:
_p = 7; _p = 7;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_8: case GL4DK_8:
_p = 8; _p = 8;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_9: case GL4DK_9:
_p = 9; _p = 9;
/*_pause = 1;*/ /*_pause = 1;*/
_movement = 0; _movement = 0;
_overview = 0; _overview = 0;
_cam.x = (int)_cam.x; _cam.x = _cam.x;
_cam.y = (int)_cam.y; _cam.y = _cam.y;
_cam.z = (int)_cam.z; _cam.z = _cam.z;
break; break;
case GL4DK_t: /* 't' la texture */ case GL4DK_t: /* 't' la texture */
_use_tex = !_use_tex; _use_tex = !_use_tex;