1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 11:57:58 +00:00

minor fixes to hat parameter

This commit is contained in:
Zeno Rogue
2023-03-24 23:55:24 +01:00
parent defeaf2cc6
commit 44454c479a
2 changed files with 3 additions and 3 deletions

View File

@@ -427,8 +427,8 @@ struct hrmap_hat : hrmap {
eshort *= hat_param;
elong *= 2 - hat_param;
// 0-length edges cause problems...
if(eshort == 0) eshort = .0001;
if(elong == 0) elong = .0001;
if(abs(eshort) < 1e-6) eshort = .0001;
if(abs(elong) < 1e-6) elong = .0001;
}
ld i60 = (M_PI - TAU*2/q)/degree;