- level generation refactoring: moved most of the generation logic to a static GaveGenerator class + some minor cleanup

- WIP method for splitting the voronoi cells to smaller ones and carving a small cave through them
This commit is contained in:
Regalis
2016-04-02 16:03:41 +03:00
parent 2a2ba80f9c
commit 39c9c78266
7 changed files with 745 additions and 557 deletions
+10 -2
View File
@@ -198,8 +198,16 @@ namespace Barotrauma
protected virtual void Dispose(bool disposing)
{
if (wallVertices!=null) wallVertices.Dispose();
if (bodyVertices!=null) bodyVertices.Dispose();
if (wallVertices != null)
{
wallVertices.Dispose();
wallVertices = null;
}
if (bodyVertices != null)
{
bodyVertices.Dispose();
bodyVertices = null;
}
}
}
}