From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/TerrainApron.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Stars45/TerrainApron.cpp') diff --git a/Stars45/TerrainApron.cpp b/Stars45/TerrainApron.cpp index e5cbdbc..6c605cf 100644 --- a/Stars45/TerrainApron.cpp +++ b/Stars45/TerrainApron.cpp @@ -10,7 +10,6 @@ ======== */ -#include "MemDebug.h" #include "Terrain.h" #include "TerrainApron.h" #include "TerrainRegion.h" @@ -46,7 +45,7 @@ const Point& p1, const Point& p2) loc.y = base; radius = (float) (size * 0.75); - heights = new(__FILE__,__LINE__) float[MAX_VERTS]; + heights = new float[MAX_VERTS]; float* pHeight = heights; @@ -104,11 +103,11 @@ TerrainApron::BuildApron() int nverts = MAX_VERTS; int npolys = detail_size * detail_size * 2; - model = new(__FILE__,__LINE__) Model; + model = new Model; model->SetLuminous(true); model->SetDynamic(true); - Material* mtl = new(__FILE__,__LINE__) Material; + Material* mtl = new Material; mtl->Ka = ColorValue(0.5f, 0.5f, 0.5f); mtl->Kd = ColorValue(0.3f, 0.6f, 0.2f); mtl->Ks = Color::Black; @@ -118,7 +117,7 @@ TerrainApron::BuildApron() model->GetMaterials().append(mtl); - Surface* s = new(__FILE__,__LINE__) Surface; + Surface* s = new Surface; VertexSet* vset = 0; if (s) { @@ -199,7 +198,7 @@ TerrainApron::BuildApron() // create continguous segments for each material: s->Normalize(); - Segment* segment = new(__FILE__,__LINE__) Segment(npolys, s->GetPolys(), mtl, model); + Segment* segment = new Segment(npolys, s->GetPolys(), mtl, model); s->GetSegments().append(segment); model->AddSurface(s); -- cgit v1.1