1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

in winner, use HUGE_VAL instead of 1e20

This commit is contained in:
Zeno Rogue 2018-07-09 18:55:43 +02:00
parent 1bd49df841
commit c42fb45fca

View File

@ -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);