Skip to content

Commit

Permalink
decodeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
RheingoldRiver committed Oct 5, 2023
1 parent 892b1c0 commit c67e9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GameStateProvider/urlConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ export function decodeUrl(s: string): StringifiedUrlConfig {
r: "0",
c:
terrainDir === TerrainDirection.height
? `${curToken}_${decodeNumber(c)}`
: `${decodeNumber(c)}_${curToken}`,
? `${decodeNumber(curToken)}_${decodeNumber(c)}`
: `${decodeNumber(c)}_${decodeNumber(curToken)}`,
});
if (terrainCount === 0) pentominoPos = 1;
terrainCount -= 1;
Expand Down

0 comments on commit c67e9e8

Please sign in to comment.