1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-30 13:32:59 +00:00

refactored the degree constant

This commit is contained in:
Zeno Rogue
2018-11-08 18:18:25 +01:00
parent 071e9a5cac
commit d1d2a300c4
12 changed files with 25 additions and 23 deletions

View File

@@ -1050,7 +1050,7 @@ void dqi_poly::draw() {
// we should fill the other side
ld h = atan2(glcoords[0][0], glcoords[0][1]);
for(int i=0; i<=360; i++) {
ld a = i * M_PI / 180 + h;
ld a = i * degree + h;
glcoords.push_back(make_array<GLfloat>(vid.radius * sin(a), vid.radius * vid.stretch * cos(a), stereo::scrdist));
}
poly_flags ^= POLY_INVERSE;