Fix syntax error.
This commit is contained in:
parent
8f9985791a
commit
cd5836b146
@ -682,7 +682,7 @@ const INTERFACE = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hex(scale=1) {
|
hex(scale=1) {
|
||||||
let scale = scale * INTERFACE.TileScale * this.scale;
|
scale *= INTERFACE.TileScale * this.scale;
|
||||||
this.ctx.moveTo(INTERFACE.HexVertex[5].x * scale, INTERFACE.HexVertex[5].y * scale);
|
this.ctx.moveTo(INTERFACE.HexVertex[5].x * scale, INTERFACE.HexVertex[5].y * scale);
|
||||||
for(let i = 0; i < INTERFACE.HexVertex.length; ++i) {
|
for(let i = 0; i < INTERFACE.HexVertex.length; ++i) {
|
||||||
this.ctx.lineTo(INTERFACE.HexVertex[i].x * scale, INTERFACE.HexVertex[i].y * scale);
|
this.ctx.lineTo(INTERFACE.HexVertex[i].x * scale, INTERFACE.HexVertex[i].y * scale);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user