mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
in winner, use HUGE_VAL instead of 1e20
This commit is contained in:
parent
1bd49df841
commit
c42fb45fca
@ -124,7 +124,7 @@ int t, lpct, cells;
|
||||
double maxdist;
|
||||
|
||||
neuron& winner(int id) {
|
||||
double bdiff = 1e20;
|
||||
double bdiff = HUGE_VAL;
|
||||
neuron *bcell = NULL;
|
||||
for(neuron& n: net) {
|
||||
double diff = vnorm(n.net, data[id].val);
|
||||
|
Loading…
Reference in New Issue
Block a user