mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
parent
53b559bef3
commit
37524af549
@ -234,7 +234,7 @@ void Zone::LoadScene(std::istream& file) {
|
|||||||
|
|
||||||
std::string luTriggersPath = scene.filename.substr(0, scene.filename.size() - 4) + ".lutriggers";
|
std::string luTriggersPath = scene.filename.substr(0, scene.filename.size() - 4) + ".lutriggers";
|
||||||
std::vector<LUTriggers::Trigger*> triggers;
|
std::vector<LUTriggers::Trigger*> triggers;
|
||||||
if(Game::assetManager->HasFile(luTriggersPath.c_str())) triggers = LoadLUTriggers(luTriggersPath, scene.id);
|
if(Game::assetManager->HasFile((m_ZonePath + luTriggersPath).c_str())) triggers = LoadLUTriggers(luTriggersPath, scene.id);
|
||||||
|
|
||||||
for (LUTriggers::Trigger* trigger : triggers) {
|
for (LUTriggers::Trigger* trigger : triggers) {
|
||||||
scene.triggers.insert({ trigger->id, trigger });
|
scene.triggers.insert({ trigger->id, trigger });
|
||||||
|
Loading…
Reference in New Issue
Block a user