mirror of
https://github.com/danbulant/heaventaker
synced 2026-07-08 12:40:39 +00:00
fix stuck in chapter select before finishing chapter
This commit is contained in:
parent
f538214dd4
commit
a78249e6ee
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
import { characters } from "../stores/characters.js";
|
import { characters } from "../stores/characters.js";
|
||||||
import { gameActive, menuActive } from "../stores/gameActive";
|
import { gameActive, menuActive } from "../stores/gameActive";
|
||||||
import { toRoman } from "../utils";
|
import { toRoman } from "../utils";
|
||||||
import Keypress from "../stores/keypress.svelte";
|
import Keypress from "../stores/keypress.svelte";
|
||||||
|
|
||||||
export var current;
|
export var current;
|
||||||
export var page;
|
export var page;
|
||||||
|
|
@ -32,7 +32,7 @@ import Keypress from "../stores/keypress.svelte";
|
||||||
function select(i) {
|
function select(i) {
|
||||||
if(!allowSwitch) return;
|
if(!allowSwitch) return;
|
||||||
var next;
|
var next;
|
||||||
if(d.flags && d.flags.includes("chapters")) {
|
if(d.flags && d.flags.includes("chapters") && chaptersDone.length) {
|
||||||
const keys = Object.keys(chapters);
|
const keys = Object.keys(chapters);
|
||||||
console.log(keys);
|
console.log(keys);
|
||||||
if(!keys[i]) return;
|
if(!keys[i]) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue