mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed a bug: check_range was used instead of coh_range
This commit is contained in:
parent
78c71fadfb
commit
8b901b1432
@ -39,7 +39,7 @@ namespace flocking {
|
||||
ld align_range = .5;
|
||||
|
||||
ld coh_factor = 1;
|
||||
ld coh_range = .5;
|
||||
ld coh_range = 2.5;
|
||||
|
||||
ld check_range = 2.5;
|
||||
|
||||
@ -168,7 +168,7 @@ namespace flocking {
|
||||
col |= 0xFF00FF;
|
||||
}
|
||||
|
||||
if(di < check_range) {
|
||||
if(di < coh_range) {
|
||||
// azimuthal equidistant projection of ac
|
||||
// (thus the cohesion force pushes us towards the
|
||||
// average of azimuthal equidistant projections)
|
||||
|
Loading…
Reference in New Issue
Block a user