Skip to content

Commit

Permalink
Fixed getLevelAt typing
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Oct 10, 2023
1 parent 1151070 commit 49851cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ldtk/macro/TypeBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class TypeBuilder {
/**
Get a level using a world pixel coord
**/
public function getLevelAt(worldX:Int, worldY:Int) : Null<$levelComplexType> {
public function getLevelAt(worldX:Float, worldY:Float) : Null<$levelComplexType> {
for(l in _untypedLevels)
if( worldX>=l.worldX && worldX<l.worldX+l.pxWid && worldY>=l.worldY && worldY<l.worldY+l.pxHei )
return cast l;
Expand Down

0 comments on commit 49851cf

Please sign in to comment.