Skip to content

Commit 3e08439

Browse files
authored
that was supposed to be an flxobject ok (#908)
* mouseOverlaps * This makes more sense yeah thinking of not even allowing disjointed overlap checks keeping it for now * oops forgot to define that var as flxcamera * h
1 parent 370d5ed commit 3e08439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/backend/utils/CoolUtil.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,11 +1030,11 @@ final class CoolUtil
10301030
/**
10311031
* Returns if the mouse is overlapping the sprite on a given camera, taking the camera's position, scroll and zoom into account.
10321032
*
1033-
* @param sprite Any `FlxBasic`
1033+
* @param sprite Any `FlxObject`
10341034
* @param camera The camera you want to check overlap on. Uses the sprite's camera by default.
10351035
* @return Bool
10361036
*/
1037-
public static function mouseOverlaps(sprite:FlxBasic, ?camera:FlxCamera) {
1037+
public static function mouseOverlaps(sprite:FlxObject, ?camera:FlxCamera) {
10381038
var camToCheck:FlxCamera = camera ?? sprite.camera;
10391039
var posthing:FlxPoint = FlxG.mouse.getWorldPosition(camToCheck);
10401040

0 commit comments

Comments
 (0)