mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 03:54:47 +00:00
arb:: fixed compute_vertex_valence
This commit is contained in:
parent
ae33c14337
commit
bdfe78eaf5
@ -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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user