mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 15:28:29 +08:00
Fixed bug in area geometry loading code.
This commit is contained in:
parent
7454517eb6
commit
48a1998679
@ -15,6 +15,7 @@ import { ObservableQuest } from "../domain/ObservableQuest";
|
|||||||
import { ObservableArea } from "../domain/ObservableArea";
|
import { ObservableArea } from "../domain/ObservableArea";
|
||||||
import { ObservableAreaVariant } from "../domain/ObservableAreaVariant";
|
import { ObservableAreaVariant } from "../domain/ObservableAreaVariant";
|
||||||
import { ObservableQuestEntity } from "../domain/observable_quest_entities";
|
import { ObservableQuestEntity } from "../domain/observable_quest_entities";
|
||||||
|
import { area_store } from "../stores/AreaStore";
|
||||||
|
|
||||||
const logger = Logger.get("rendering/QuestModelManager");
|
const logger = Logger.get("rendering/QuestModelManager");
|
||||||
|
|
||||||
@ -34,7 +35,9 @@ export class QuestModelManager {
|
|||||||
let area_variant: ObservableAreaVariant | undefined;
|
let area_variant: ObservableAreaVariant | undefined;
|
||||||
|
|
||||||
if (quest && area) {
|
if (quest && area) {
|
||||||
area_variant = quest.area_variants.find(v => v.area.id === area.id);
|
area_variant =
|
||||||
|
quest.area_variants.find(v => v.area.id === area.id) ||
|
||||||
|
area_store.get_variant(quest.episode, area.id, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.quest === quest && this.area_variant === area_variant) {
|
if (this.quest === quest && this.area_variant === area_variant) {
|
||||||
|
Loading…
Reference in New Issue
Block a user