mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
fixed location disapearing
This commit is contained in:
@@ -167,6 +167,9 @@ export default class Game {
|
||||
if (team == undefined) {
|
||||
return false;
|
||||
}
|
||||
if(location == null) {
|
||||
return false;
|
||||
}
|
||||
team.currentLocation = location;
|
||||
//Update the team ready status if they are in their starting area
|
||||
if (this.state == GameState.PLACEMENT && team.startingArea && team.startingArea && location) {
|
||||
@@ -190,6 +193,10 @@ export default class Game {
|
||||
if (team == undefined) {
|
||||
return false;
|
||||
}
|
||||
if(team.currentLocation == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
team.locationSendDeadline = Number(new Date()) + penaltyController.settings.allowedTimeBetweenPositionUpdate * 60 * 1000;
|
||||
team.lastSentLocation = team.currentLocation;
|
||||
if (this.getTeam(team.chasing) != null) {
|
||||
|
||||
Reference in New Issue
Block a user