Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanger committed Mar 20, 2023
1 parent af0a81c commit 9e2fffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/game/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class Player extends GameObject {
this.fullDirtyObjects.push(object);
}
} else { // if object is not visible
if(this.visibleObjects.includes(object)) {
if(this.visibleObjects.includes(object) && !(object instanceof Player)) {
this.deletedObjects.push(object);
}
}
Expand Down

0 comments on commit 9e2fffb

Please sign in to comment.