make vars local

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-09-17 23:29:31 +02:00
parent bc5c586e93
commit 43e3bea088

View file

@ -25,9 +25,9 @@ var printRolloutStats = func()
var gndTimer = maketimer(1, func() var gndTimer = maketimer(1, func()
{ {
c_t = dist_from_center_thr(); var c_t = dist_from_center_thr();
dist_c = c_t[0]; var dist_c = c_t[0];
totalDev = rolloutStats[0] * rolloutStats[1] + dist_c; var totalDev = rolloutStats[0] * rolloutStats[1] + dist_c;
rolloutStats[0] = rolloutStats[0] + 1; rolloutStats[0] = rolloutStats[0] + 1;
rolloutStats[1] = totalDev / rolloutStats[0]; rolloutStats[1] = totalDev / rolloutStats[0];
if (dist_c > rolloutStats[2]) if (dist_c > rolloutStats[2])