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