Skip to content

Commit

Permalink
perspective: fix worldToCanvas to convert from local to scene coords …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
Adam- committed Jul 27, 2018
1 parent 28520dc commit 4ecf45f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static Point worldToCanvas(@Nonnull Client client, int x, int y, int plan
*/
public static Point worldToCanvas(@Nonnull Client client, int x, int y, int plane, int zOffset)
{
return worldToCanvas(client, x, y, plane, x, y, zOffset);
return worldToCanvas(client, x, y, plane, x >>> LOCAL_COORD_BITS, y >>> LOCAL_COORD_BITS, zOffset);
}

/**
Expand Down

0 comments on commit 4ecf45f

Please sign in to comment.