Skip to content

Commit

Permalink
Update UniverseObjects.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiraffe3 authored Jan 4, 2025
1 parent 96568cc commit 50ed9a8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source/UniverseObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ void UniverseObjects::FinishLoading()

for(auto &&it : customOutfitSales)
it.second.FinishLoading();
for(auto &&it : customShipSales)
it.second.FinishLoading();
// Calculate minable values.
for(auto &&it : minables)
it.second.FinishLoading();
Expand Down Expand Up @@ -150,8 +148,6 @@ void UniverseObjects::Change(const DataNode &node)
outfitSales.Get(node.Token(1))->Load(node, outfits);
else if(node.Token(0) == "pricing" && node.Size() >= 3)
customOutfitSales.Get(node.Token(2))->Load(node, true);
else if(node.Token(0) == "pricing" && node.Size() >= 3)
customShipSales.Get(node.Token(2))->Load(node, true);
else if(node.Token(0) == "planet" && node.Size() >= 2)
planets.Get(node.Token(1))->Load(node, wormholes);
else if(node.Token(0) == "shipyard" && node.Size() >= 2)
Expand Down Expand Up @@ -384,8 +380,6 @@ void UniverseObjects::LoadFile(const filesystem::path &path, bool debugMode)
planets.Get(node.Token(1))->Load(node, wormholes);
else if(key == "pricing" && node.Size() >= 3)
customOutfitSales.Get(node.Token(2))->Load(node);
else if(key == "pricing" && node.Size() >= 3)
customShipSales.Get(node.Token(2))->Load(node);
else if(key == "ship" && node.Size() >= 2)
{
// Allow multiple named variants of the same ship model.
Expand Down

0 comments on commit 50ed9a8

Please sign in to comment.