Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
make sure theres no clipping there
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed Dec 20, 2023
1 parent 4de0b5f commit 7ce7800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/funkin/graphics/FlxRepeatSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ class FlxRepeatSprite extends FlxSpriteExt {
}

inline function matrixOutOfBounds(matrix:FlxMatrix, frame:FlxRect, cam:FlxCamera):Bool {
return ((_matrix.tx + frame.width) < cam.viewX) ||
(_matrix.tx > cam.viewWidth) ||
((_matrix.ty + frame.height) < cam.viewY) ||
(_matrix.ty > cam.viewHeight);
return ((_matrix.ty + frame.height) < cam.viewY) ||
((_matrix.ty - frame.height) > cam.viewHeight) ||
((_matrix.tx + frame.width) < cam.viewX) ||
((_matrix.tx - frame.width) > cam.viewWidth);
}

function handleClipRect(tileFrame:FlxFrame, baseFrame:FlxFrame, tilePos:FlxPoint) {
Expand Down

0 comments on commit 7ce7800

Please sign in to comment.