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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user