Skip to content

Commit

Permalink
fixed bug where floating chloeoplasts wouldnt get deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Untrustedlife authored and hhyyrylainen committed Feb 15, 2019
1 parent da9aecb commit 6f1163f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/thrive_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ std::unique_ptr<Leviathan::PhysicsMaterialManager>
std::make_unique<Leviathan::PhysicalMaterial>("cell", 1);
auto floatingOrganelleMaterial =
std::make_unique<Leviathan::PhysicalMaterial>("floatingOrganelle", 2);
auto ironMaterial =
std::make_unique<Leviathan::PhysicalMaterial>("iron", 2);
auto agentMaterial =
std::make_unique<Leviathan::PhysicalMaterial>("agentCollision", 3);
auto ironMaterial =
std::make_unique<Leviathan::PhysicalMaterial>("iron", 4);

// Set callbacks //

Expand All @@ -289,8 +289,8 @@ std::unique_ptr<Leviathan::PhysicsMaterialManager>

manager->LoadedMaterialAdd(std::move(cellMaterial));
manager->LoadedMaterialAdd(std::move(floatingOrganelleMaterial));
manager->LoadedMaterialAdd(std::move(ironMaterial));
manager->LoadedMaterialAdd(std::move(agentMaterial));
manager->LoadedMaterialAdd(std::move(ironMaterial));

return manager;
}

0 comments on commit 6f1163f

Please sign in to comment.