1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

arb:: fixed compute_vertex_valence

This commit is contained in:
Zeno Rogue 2021-07-29 12:03:20 +02:00
parent ae33c14337
commit bdfe78eaf5

View File

@ -340,7 +340,10 @@ EX void compute_vertex_valence() {
int qty = 0;
connection_t at = {i, k, false};
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++;
at.eid++;