Skip to content

Commit

Permalink
Relative / absolute coordinates of buildings/waypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-hanzal committed Jan 31, 2025
1 parent 2a29ef0 commit a0b8b7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/pico/src/app/derivean/game/GameMap2/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const Content: FC<Content.Props> = ({
switch (node.type) {
case "construction":
case "queue":
case "building":
case "building": {
buildingMutation.mutate(
{
id: node.id,
Expand All @@ -185,13 +185,15 @@ export const Content: FC<Content.Props> = ({
},
);
break;
case "waypoint":
}
case "waypoint": {
waypointMutation.mutate({
id: node.id,
x: node.position.x,
y: node.position.y,
});
break;
}
default:
break;
}
Expand Down

0 comments on commit a0b8b7f

Please sign in to comment.