Skip to content

Commit

Permalink
Update Zone.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Nov 22, 2023
1 parent 1ea65b3 commit 3f9d1a1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions dZoneManager/Zone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,33 +241,15 @@ void Zone::LoadScene(std::istream& file) {
m_Scenes.insert(std::make_pair(lwoSceneID, scene));
}

<<<<<<< Updated upstream
void Zone::LoadLUTriggers(std::string triggerFile, SceneRef& scene) {
auto buffer = Game::assetManager->GetFileAsBuffer((m_ZonePath + triggerFile).c_str());
=======
std::vector<LUTriggers::Trigger*> Zone::LoadLUTriggers(std::string triggerFile, LWOSCENEID sceneID) {
std::vector<LUTriggers::Trigger*> lvlTriggers;

auto file = Game::assetManager->GetFile((m_ZonePath + triggerFile).c_str());
>>>>>>> Stashed changes

if (!file) {
LOG("Failed to load %s from disk. Skipping loading triggers", (m_ZonePath + triggerFile).c_str());
return;
}

std::stringstream data;
data << file.rdbuf();

<<<<<<< Updated upstream
buffer.close();

data.seekg(0, std::ios::end);
int32_t size = data.tellg();
data.seekg(0, std::ios::beg);
=======
if (data.str().size() == 0) return lvlTriggers;
>>>>>>> Stashed changes

if (size == 0) return;

Expand Down

0 comments on commit 3f9d1a1

Please sign in to comment.