refactored the degree constant

This commit is contained in:
Zeno Rogue committed 2018-11-11 11:25:59 +01:00
1 parent 071e9a5cac
commit d1d2a300c4
12 files changed
+25 -23

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ bool cameraangle_on;
void setcameraangle(bool b) {
if(cameraangle_on != b) {
cameraangle_on = b;
ld cam = vid.camera_angle * M_PI / 180;
ld cam = vid.camera_angle * degree;
GLfloat cc = cos(cam);
GLfloat ss = sin(cam * (b?1:-1));