Skip to content

Commit

Permalink
fix torus in unequal sides
Browse files Browse the repository at this point in the history
  • Loading branch information
RheingoldRiver committed Nov 2, 2023
1 parent e7672b0 commit a51be38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GameStateProvider/paintGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function getCoordinatesToPaint(
};
case SURFACES.Torus:
return {
newX: wrap(rawX, width),
newX: wrap(rawX, height),
newY: wrap(rawY, width),
};
case SURFACES.Sphere:
Expand Down

0 comments on commit a51be38

Please sign in to comment.