Skip to content

Commit

Permalink
fix: don't render that should be rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
ufocoder committed May 1, 2024
1 parent 321196a commit a24dd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ecs/systems/CameraSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class CameraSystem extends System {

y += yIncrementer;

if (y1 < 0 && y2 < 0) {
if (y1 < 0 && y2 < 0 || y1 > this.height && y2 > this.height) {
continue;
}

Expand Down

0 comments on commit a24dd4b

Please sign in to comment.