Skip to content

Commit

Permalink
Update ctx.translate to miss out the 3rd param.
Browse files Browse the repository at this point in the history
  • Loading branch information
iblobtouch committed Jun 1, 2021
1 parent 5b7c0a4 commit 396e912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/drawGraphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function drawBarrel(a, xoffset, yoffset, width, length, alpha, isghost, type, im
ctx.lineWidth = 5;
ctx.fillStyle = colour;
ctx.globalAlpha = alpha;
ctx.translate(tankpointx, tankpointy, 0);
ctx.translate(tankpointx, tankpointy);
if (editmode === false) {
ctx.rotate((angle(tankpointx, tankpointy, mouse.x, mouse.y) + a) * (Math.PI / 180));
} else if ((isghost === true) && (shiftheld === true)) {
Expand Down

0 comments on commit 396e912

Please sign in to comment.