Fixing CI

This commit is contained in:
David Négrier 2021-05-05 13:14:00 +02:00
parent 4b89e08ea6
commit cd2873e9d3
4 changed files with 6 additions and 10 deletions

View file

@ -1444,8 +1444,8 @@ ${escapedMessage}
*/
private updateCameraOffset(): void {
const array = layoutManager.findBiggestAvailableArray();
let xCenter = (array.xEnd - array.xStart) / 2 + array.xStart;
let yCenter = (array.yEnd - array.yStart) / 2 + array.yStart;
const xCenter = (array.xEnd - array.xStart) / 2 + array.xStart;
const yCenter = (array.yEnd - array.yStart) / 2 + array.yStart;
const game = HtmlUtils.querySelectorOrFail<HTMLCanvasElement>('#game canvas');
// Let's put this in Game coordinates by applying the zoom level: