summaryrefslogtreecommitdiffhomepage
path: root/Stars45/TerrainPatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/TerrainPatch.cpp')
-rw-r--r--Stars45/TerrainPatch.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Stars45/TerrainPatch.cpp b/Stars45/TerrainPatch.cpp
index 046b8f6..af70e0f 100644
--- a/Stars45/TerrainPatch.cpp
+++ b/Stars45/TerrainPatch.cpp
@@ -10,7 +10,6 @@
========
*/
-#include "MemDebug.h"
#include "Terrain.h"
#include "TerrainLayer.h"
#include "TerrainPatch.h"
@@ -62,7 +61,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;
int tscale = rect.w / (PATCH_SIZE-1);
@@ -101,7 +100,7 @@ const Point& p1, const Point& p2)
}
}
- 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;
@@ -122,7 +121,7 @@ const Point& p1, const Point& p2)
if (!texd)
texd = terrain->DetailTexture(0);
- mtl = new(__FILE__,__LINE__) 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;
@@ -173,7 +172,7 @@ double sea_level)
loc.y = base;
radius = (float) (size * 0.75);
- heights = new(__FILE__,__LINE__) float[MAX_VERTS];
+ heights = new float[MAX_VERTS];
float* pHeight = heights;
int i, j;
@@ -184,7 +183,7 @@ double sea_level)
}
}
- Material* mtl = new(__FILE__,__LINE__) Material;
+ Material* mtl = new Material;
mtl->Ka = Color::Gray;
mtl->Kd = Color::White;
mtl->Ks = Color::White;
@@ -273,7 +272,7 @@ TerrainPatch::BuildDetailLevel(int level)
if (detail_size > PATCH_SIZE)
return false;
- Model* model = new(__FILE__,__LINE__) Model;
+ Model* model = new Model;
detail_levels[level] = model;
model->SetLuminous(luminous);
@@ -294,7 +293,7 @@ TerrainPatch::BuildDetailLevel(int level)
total = npolys;
}
- Surface* s = new(__FILE__,__LINE__) Surface;
+ Surface* s = new Surface;
VertexSet* vset = 0;
if (s) {
@@ -575,7 +574,7 @@ TerrainPatch::BuildDetailLevel(int level)
}
if (!segment) {
- segment = new(__FILE__,__LINE__) Segment;
+ segment = new Segment;
segment->npolys = 1;
segment->polys = &spolys[n];