1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Remove redundant redraw

looks like i was high or something, i don't believe my eyes (and arms)
This commit is contained in:
dengr1065 2020-09-23 19:28:58 +03:00 committed by GitHub
parent 2eba8f79e7
commit 73b7f27328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,13 +123,6 @@ export class DisplaySystem extends GameSystemWithFilter {
const origin = entity.components.StaticMapEntity.origin;
if (value instanceof ColorItem) {
this.displaySprites[value.color].drawCachedCentered(
parameters,
(origin.x + 0.5) * globalConfig.tileSize,
(origin.y + 0.5) * globalConfig.tileSize,
globalConfig.tileSize
);
parameters.context.fillStyle = enumColorsToHexCode[value.color];
parameters.context.fillRect(
origin.x * globalConfig.tileSize,