diff --git a/components/packages/Platform/THPlatform.js b/components/packages/Platform/THPlatform.js index 1196c7d..5520842 100644 --- a/components/packages/Platform/THPlatform.js +++ b/components/packages/Platform/THPlatform.js @@ -39,7 +39,10 @@ class THPlatform extends JlPlatform { this.doorGraphic.stateFillColor = THConsts.doorGraphic.doorRed; } super.draw(); - this.doorGraphic.draw(); + this.doorGraphic.clear(); + if (this.datas.hasdoor) { + this.doorGraphic.draw(); + } this.codeGraphic.draw(); if (this.datas.direction == 'down') { this.doorGraphic.changePosition(); diff --git a/src/packages/Platform/THPlatform.ts b/src/packages/Platform/THPlatform.ts index a2fd72a..0eb9f63 100644 --- a/src/packages/Platform/THPlatform.ts +++ b/src/packages/Platform/THPlatform.ts @@ -85,7 +85,10 @@ export class THPlatform extends JlPlatform { this.doorGraphic.stateFillColor = THConsts.doorGraphic.doorRed; } super.draw(); - this.doorGraphic.draw(); + this.doorGraphic.clear(); + if (this.datas.hasdoor) { + this.doorGraphic.draw(); + } this.codeGraphic.draw(); if (this.datas.direction == 'down') { this.doorGraphic.changePosition();