1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

fixed a bug: check_range was used instead of coh_range

This commit is contained in:
Zeno Rogue 2018-11-20 12:58:35 +01:00
parent 78c71fadfb
commit 8b901b1432

View File

@ -39,7 +39,7 @@ namespace flocking {
ld align_range = .5; ld align_range = .5;
ld coh_factor = 1; ld coh_factor = 1;
ld coh_range = .5; ld coh_range = 2.5;
ld check_range = 2.5; ld check_range = 2.5;
@ -168,7 +168,7 @@ namespace flocking {
col |= 0xFF00FF; col |= 0xFF00FF;
} }
if(di < check_range) { if(di < coh_range) {
// azimuthal equidistant projection of ac // azimuthal equidistant projection of ac
// (thus the cohesion force pushes us towards the // (thus the cohesion force pushes us towards the
// average of azimuthal equidistant projections) // average of azimuthal equidistant projections)