mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
fix: remove route if it has <2 points
This commit is contained in:
parent
601e71b846
commit
877afa546d
3 changed files with 3 additions and 2 deletions
|
|
@ -8047,7 +8047,7 @@
|
|||
<script src="modules/cultures-generator.js?v=1.99.05"></script>
|
||||
<script src="modules/burgs-and-states.js?v=1.104.0"></script>
|
||||
<script src="modules/provinces-generator.js?v=1.104.0"></script>
|
||||
<script src="modules/routes-generator.js?v=1.104.3"></script>
|
||||
<script src="modules/routes-generator.js?v=1.104.10"></script>
|
||||
<script src="modules/religions-generator.js?v=1.99.05"></script>
|
||||
<script src="modules/military-generator.js?v=1.104.0"></script>
|
||||
<script src="modules/markers-generator.js?v=1.104.0"></script>
|
||||
|
|
|
|||
|
|
@ -727,6 +727,7 @@ window.Routes = (function () {
|
|||
|
||||
for (const point of route.points) {
|
||||
const from = point[2];
|
||||
if (!routes[from]) continue;
|
||||
|
||||
for (const [to, routeId] of Object.entries(routes[from])) {
|
||||
if (routeId === route.i) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
* Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2
|
||||
*/
|
||||
const VERSION = "1.104.9";
|
||||
const VERSION = "1.104.10";
|
||||
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue