Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuLivebardon authored and valentinMachado committed Sep 19, 2022
1 parent 127e1b7 commit d71f116
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/assets/worldScripts/Map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @format */

// eslint-disable-next-line no-unused-vars
const GameType = require('ud-viz/src/Game/Game');
/** @type {GameType} */
let Game = null;
Expand All @@ -17,7 +18,7 @@ module.exports = class Map {
loadLocal() {
const _this = this;
return new Promise((resolve, reject) => {
const gameObject = arguments[0];
// const gameObject = arguments[0];
const conf = this.conf;

const img = document.createElement('img');
Expand Down Expand Up @@ -59,8 +60,8 @@ module.exports = class Map {

loadServer() {
const modules = arguments[3];
return new Promise((resolve, reject) => {
const gameObject = arguments[0];
return new Promise((resolve) => {
// const gameObject = arguments[0];
const gm = modules.gm;
const PNG = modules.PNG;

Expand Down Expand Up @@ -177,7 +178,7 @@ module.exports = class Map {
}

updateElevation(gameObject) {
let elevation = this.getHeightValue(
const elevation = this.getHeightValue(
gameObject.getPosition().x,
gameObject.getPosition().y
);
Expand Down

0 comments on commit d71f116

Please sign in to comment.