Corrections zones

This commit is contained in:
Sébastien Rivière
2025-06-26 14:20:23 +02:00
parent d25dcfcbc1
commit 2f5116b88a
4 changed files with 16 additions and 12 deletions

View File

@@ -117,7 +117,7 @@ export default {
if (team.currentLocation == null || !zoneManager.isRunning) {
return;
}
if (!zoneManager.isInCircle({ lat: team.currentLocation[0], lng: team.currentLocation[1] })) {
if (!zoneManager.isInZone({ lat: team.currentLocation[0], lng: team.currentLocation[1] })) {
//The team was not previously out of the zone
if (!this.outOfBoundsSince[team.id]) {
this.outOfBoundsSince[team.id] = Date.now();