No message. 83 files changed.
This commit is contained in:
@@ -15,6 +15,7 @@ const AG_LABEL_HOUSE = 3;
|
||||
const AG_LABEL_EXIT = 3;
|
||||
|
||||
// Log Levels
|
||||
const LOG_ALL = -1;
|
||||
const LOG_NONE = 0;
|
||||
const LOG_INFO = 1;
|
||||
const LOG_WARN = 2;
|
||||
|
||||
@@ -111,13 +111,17 @@ function getDistance(vec1, vec2) {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function isConsole(client) {
|
||||
if(client == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return client.console;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function logToConsole(tempLogLevel, text) {
|
||||
if(logLevel & tempLogLevel) {
|
||||
if(logLevel & tempLogLevel || logLevel == LOG_ALL) {
|
||||
if(tempLogLevel == LOG_ERROR) {
|
||||
console.error(text);
|
||||
} else if(tempLogLevel == LOG_WARN) {
|
||||
@@ -132,4 +136,10 @@ function logToConsole(tempLogLevel, text) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function isSamePlayer(client1, client2) {
|
||||
return (client1 == client2);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user