Преглед изворни кода

Small fixes

Fix tile generation, and set default map width.
master
TheoryOfNekomata пре 3 година
родитељ
комит
abd2c8adbe
2 измењених фајлова са 2 додато и 2 уклоњено
  1. +1
    -1
      src/backend/services/Tile.service.ts
  2. +1
    -1
      src/components/GenerateMapForm/index.tsx

+ 1
- 1
src/backend/services/Tile.service.ts Прегледај датотеку

@@ -97,7 +97,7 @@ export class TileServiceImpl implements TileService {
} else if (landFlags.ne) { } else if (landFlags.ne) {
cursor += 8; // 21 cursor += 8; // 21
if (landFlags.nw) { if (landFlags.nw) {
cursor += 20; // 33
cursor += 12; // 33
} }
} else if (landFlags.nw) { } else if (landFlags.nw) {
cursor += 9; // 22 cursor += 9; // 22


+ 1
- 1
src/components/GenerateMapForm/index.tsx Прегледај датотеку

@@ -175,7 +175,7 @@ export const GenerateMapForm: VFC = () => {
block block
placeholder="Width" placeholder="Width"
name="width" name="width"
defaultValue={512}
defaultValue={288}
/> />
</div> </div>
<div> <div>


Loading…
Откажи
Сачувај