Skip to content

Commit c6929f9

Browse files
authored
Merge pull request #219 from easycoder/dev
Bug fixes
2 parents 471a521 + b20eeea commit c6929f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

iwsy/iwsy.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ const IWSY = (playerElement, scriptObject) => {
244244
// Set the visibility of a block
245245
const setVisibility = (block, showHide) => {
246246
if (showHide) {
247-
// block.element.style.opacity = `1.0`;
247+
block.element.style.opacity = `1.0`;
248248
block.element.style.display = `block`;
249249
} else {
250-
// block.element.style.opacity = `0.0`;
250+
block.element.style.opacity = `0.0`;
251251
block.element.style.display = `none`;
252252
}
253253
};
@@ -535,7 +535,7 @@ const IWSY = (playerElement, scriptObject) => {
535535
// } else if (continueFlag) {
536536
// step.next();
537537
// }
538-
538+
539539
// An animation is not a transition, so move on immediately
540540
step.next();
541541
};
@@ -934,10 +934,10 @@ const IWSY = (playerElement, scriptObject) => {
934934

935935
// Go to a specified label
936936
const goto = step => {
937-
const target = script.labels[step.target];
938-
if (typeof target !== `undefined`) {
939-
script.scanTarget = target;
940-
scan();
937+
const index = script.labels[step.target];
938+
if (typeof index !== `undefined`) {
939+
nextStep = script.steps[index];
940+
doStep(nextStep);
941941
} else {
942942
throw Error(`Unknown label '${step.target}`);
943943
}

0 commit comments

Comments
 (0)