Skip to content

Commit

Permalink
Update standard to the latest version 🚀 (#13)
Browse files Browse the repository at this point in the history
* chore(package): update standard to version 13.0.1

* standard --fix
  • Loading branch information
greenkeeper[bot] authored and goto-bus-stop committed Jul 12, 2019
1 parent 4c7dfa5 commit 53af5db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"devDependencies": {
"buble": "^0.19.3",
"rimraf": "^2.6.2",
"standard": "^12.0.0"
"standard": "^13.0.1"
},
"keywords": [
"age of empires",
Expand Down
10 changes: 5 additions & 5 deletions src/SLP.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const RENDER_FILL = 0x06
const RENDER_PLAYER_FILL = 0x07

// SLP Header
let headerStruct = Struct({
const headerStruct = Struct({
version: t.string(4),
numFrames: t.int32,
comment: t.string(24),
Expand Down Expand Up @@ -106,8 +106,8 @@ SLP.prototype.parseFrame = function (id) {
const orNext = (x) => x || buf[++offset]

for (let i = 0; i < height; i++) {
let left = buf.readUInt16LE(offset)
let right = buf.readUInt16LE(offset + 2)
const left = buf.readUInt16LE(offset)
const right = buf.readUInt16LE(offset + 2)
outlines.push({ left, right })
offset += 4
}
Expand Down Expand Up @@ -270,7 +270,7 @@ SLP.prototype.renderFrame = function (frameIdx, palette, { player, drawOutline }
while (i--) pushColor(color, 255)
break
case RENDER_OUTLINE:
pushColor([ 0, 0, 0 ], drawOutline ? 255 : 0)
pushColor([0, 0, 0], drawOutline ? 255 : 0)
break
case RENDER_PLAYER_COLOR:
pushColor(getPlayerColor(palette, arg, player), 255)
Expand All @@ -282,7 +282,7 @@ SLP.prototype.renderFrame = function (frameIdx, palette, { player, drawOutline }
break
case RENDER_SHADOW:
i = arg
while (i--) pushColor([ 255, 0, 0 ], 255)
while (i--) pushColor([255, 0, 0], 255)
break
}
})
Expand Down

0 comments on commit 53af5db

Please sign in to comment.