Skip to content

Commit

Permalink
Adventure dialog hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jjayers99 committed Jan 6, 2024
1 parent 7113e80 commit 8e532bb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ public void displayNextDialog(MapStage stage){
return;
}

MapDialog dialog = new MapDialog(dialogQueue.remove(), stage, -1, null);
DialogData data = dialogQueue.remove();
MapDialog dialog = new MapDialog(data, stage, -1, null);
stage.showDialog();
dialog.activate();
ChangeListener listen = new ChangeListener() {
Expand All @@ -234,7 +235,10 @@ public void changed(ChangeEvent changeEvent, Actor actor) {
}
};
dialog.addDialogCompleteListener(listen);

if (data.options == null || data.options.length == 0)
{
displayNextDialog(stage);
}
}
public static class DistanceSort implements Comparator<PointOfInterest>
{
Expand Down

0 comments on commit 8e532bb

Please sign in to comment.