From abd2c8adbe0870b028bfae84d3b908fa67191293 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 14 Mar 2022 09:07:00 +0800 Subject: [PATCH] Small fixes Fix tile generation, and set default map width. --- src/backend/services/Tile.service.ts | 2 +- src/components/GenerateMapForm/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/services/Tile.service.ts b/src/backend/services/Tile.service.ts index 24c1d0a..bf7e3da 100644 --- a/src/backend/services/Tile.service.ts +++ b/src/backend/services/Tile.service.ts @@ -97,7 +97,7 @@ export class TileServiceImpl implements TileService { } else if (landFlags.ne) { cursor += 8; // 21 if (landFlags.nw) { - cursor += 20; // 33 + cursor += 12; // 33 } } else if (landFlags.nw) { cursor += 9; // 22 diff --git a/src/components/GenerateMapForm/index.tsx b/src/components/GenerateMapForm/index.tsx index c818853..7be05ef 100644 --- a/src/components/GenerateMapForm/index.tsx +++ b/src/components/GenerateMapForm/index.tsx @@ -175,7 +175,7 @@ export const GenerateMapForm: VFC = () => { block placeholder="Width" name="width" - defaultValue={512} + defaultValue={288} />