mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 20:57:10 +00:00
refactored the degree constant
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user