Revert "Update xml"

This reverts commit 9b8d1f2257.
This commit is contained in:
Vortrex
2021-01-26 04:16:05 -06:00
parent 9b8d1f2257
commit caa6b3986f
190 changed files with 5046 additions and 83 deletions

View File

@@ -493,15 +493,13 @@ function getClosestCivilian(position) {
// ---------------------------------------------------------------------------
function getClosestPlayer(position, exemptClient) {
function getClosestPlayer(position) {
let clients = getClients();
let closest = 0;
for(let i in clients) {
if(clients[i] != exemptClient) {
if(getDistance(getPlayerPosition(clients[i]), position) > 0.0) {
if(getDistance(getPlayerPosition(clients[i]), position) < getDistance(getPlayerPosition(clients[closest]), position)) {
closest = i;
}
if(getDistance(getPlayerPosition(clients[i]), position) > 0.0) {
if(getDistance(getPlayerPosition(clients[i]), position) < getDistance(getPlayerPosition(clients[closest]), position)) {
closest = i;
}
}
}
@@ -1967,17 +1965,4 @@ function removeColoursFromString(str) {
return [str, matchedHexes];
}
// -------------------------------------------------------------------------
function getClientByName(name) {
let clients = getClients();
for(let i in clients) {
if(clients[i].name == name) {
return clients[i];
}
}
return null;
}
// -------------------------------------------------------------------------