Simplify condition

This commit is contained in:
hasufell 2014-05-12 23:38:27 +02:00
parent d408b37eab
commit 563b0a5814
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 1 additions and 4 deletions

View File

@ -484,10 +484,7 @@ void keyboard(unsigned char key, int x, int y)
glTranslatef(1.0f, 0.0f, 0.0f);
break;
case 'n':
if (show_normals)
show_normals = false;
else
show_normals = true;
show_normals = !show_normals;
break;
case '+':
glTranslatef(0.0f, 0.0f, 1.0f);