fix non-integer door numbers
This commit is contained in:
parent
e097e3011e
commit
f7754ec901
1 changed files with 1 additions and 1 deletions
|
@ -14,6 +14,6 @@ export class Door {
|
|||
}
|
||||
|
||||
public set day(day: number) {
|
||||
this._day = Math.max(day, -1);
|
||||
this._day = Math.max(Math.floor(day), -1);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue