mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-15 22:27:38 +00:00
arb:: fixed compute_vertex_valence
This commit is contained in:
@@ -340,7 +340,10 @@ EX void compute_vertex_valence() {
|
|||||||
int qty = 0;
|
int qty = 0;
|
||||||
connection_t at = {i, k, false};
|
connection_t at = {i, k, false};
|
||||||
do {
|
do {
|
||||||
total += shs[at.sid].angles[at.eid];
|
ld a = shs[at.sid].angles[at.eid];
|
||||||
|
while(a < 0) a += 360 * degree;
|
||||||
|
while(a > 360 * degree) a -= 360 * degree;
|
||||||
|
total += a;
|
||||||
qty++;
|
qty++;
|
||||||
|
|
||||||
at.eid++;
|
at.eid++;
|
||||||
|
Reference in New Issue
Block a user