exclude antarctica from stats

This commit is contained in:
HF 2021-08-21 13:32:32 +02:00
parent 7cc5102de5
commit 2cec2e728f

View File

@ -343,7 +343,9 @@ export async function drawByCoords(
setPixelByCoords(canvasId, color, x, y, z); setPixelByCoords(canvasId, color, x, y, z);
user.setWait(waitLeft, canvasId); user.setWait(waitLeft, canvasId);
if (canvas.ranked) { /* hardcode to not count pixels in antarctica */
// eslint-disable-next-line eqeqeq
if (canvas.ranked && (canvasId != 0 || y < 14450)) {
user.incrementPixelcount(); user.incrementPixelcount();
} }
return { return {