- removed UniqueLineToLines because it wasn't used anywhere.

This commit is contained in:
Christoph Oelckers 2018-04-14 21:24:48 +02:00
parent 790182a2f4
commit 71c8417578
3 changed files with 1 additions and 7 deletions

View file

@ -85,7 +85,6 @@ bool GLPortal::inskybox;
UniqueList<GLSkyInfo> UniqueSkies;
UniqueList<GLHorizonInfo> UniqueHorizons;
UniqueList<secplane_t> UniquePlaneMirrors;
UniqueList<FLinePortalSpan> UniqueLineToLines;
int skyboxrecursion = 0;
@ -100,7 +99,6 @@ void GLPortal::BeginScene()
UniqueSkies.Clear();
UniqueHorizons.Clear();
UniquePlaneMirrors.Clear();
UniqueLineToLines.Clear();
}
//==========================================================================

View file

@ -74,7 +74,6 @@ struct GLSkyInfo
extern UniqueList<GLSkyInfo> UniqueSkies;
extern UniqueList<GLHorizonInfo> UniqueHorizons;
extern UniqueList<secplane_t> UniquePlaneMirrors;
extern UniqueList<FLinePortalSpan> UniqueLineToLines;
struct GLEEHorizonPortal;
class GLSceneDrawer;

View file

@ -1241,10 +1241,7 @@ public:
{
if (!memcmp(t, Array[i], sizeof(T))) return Array[i];
}
T * newo = new T;
*newo = *t;
Array.Push(newo);
Array.Push(new T(*t));
return newo;
}