Skip to content

Commit

Permalink
Offset moins important
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-perso committed Sep 10, 2023
1 parent ad55eef commit c696ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/el2zay.elbot/random-map-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function generateRandomCoordinates() {
const randomCity = cities[Math.floor(Math.random() * cities.length)]

// Ajoutez un décalage aléatoire pour obtenir une position GPS dans la ville, mais pas exactement au centre
const latitudeOffset = Math.random() * (0.8 - 0.1)
const longitudeOffset = Math.random() * (0.8 - 0.1)
const latitudeOffset = Math.random() * (0.2 - 0.1)
const longitudeOffset = Math.random() * (0.2 - 0.1)

// Calculez les coordonnées GPS finales, et les retourner
const latitude = randomCity.latitude + latitudeOffset
Expand Down

0 comments on commit c696ca3

Please sign in to comment.