#13029 fix 500 agent view

This commit is contained in:
Jonathan 2024-03-11 11:47:32 +01:00
parent d482425991
commit bb7f359875

View File

@ -4553,6 +4553,7 @@ function agents_get_starmap(
var randomPoint = getRandomInteger(1, total_modules);
let target = $(`#rect_${randomPoint}`);
let class_name = target.attr('class');
if(target.length){
class_name = class_name.split('_')[0];
setTimeout(function() {
target.removeClass();
@ -4560,6 +4561,7 @@ function agents_get_starmap(
oneSquare(getRandomInteger(1, 10), getRandomInteger(100, 900));
}, time);
}
}
let cont = 0;
while (cont < Math.ceil(total_modules / 3)) {