Skip to content

Commit

Permalink
Fix math for upside-down shields
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley committed Jul 9, 2022
1 parent 6676cd0 commit b4b02cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/shield.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function loadShield(ctx, shield, bannerCount, verticalReflect) {
bannerCount * ShieldDef.bannerSizeH +
ShieldDef.topPadding -
drawCtx.canvas.height -
ShieldDraw.PXR
2 * ShieldDraw.PXR
);
ctx.restore();
}
Expand Down

0 comments on commit b4b02cd

Please sign in to comment.