summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Solid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Solid.cpp')
-rw-r--r--Stars45/Solid.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/Solid.cpp b/Stars45/Solid.cpp
index eef2d55..c91e7f1 100644
--- a/Stars45/Solid.cpp
+++ b/Stars45/Solid.cpp
@@ -807,7 +807,7 @@ Model::GetAllTextures(List<Bitmap>& textures)
Model::Model()
: nverts(0), npolys(0), radius(0), luminous(false), dynamic(false)
-{
+{
ZeroMemory(name, sizeof(name));
}
@@ -1251,7 +1251,7 @@ Model::LoadMag5(BYTE* block, int len, double scale)
vset->rw[v] = 1;
poly.verts[vi] = v;
}
-
+
loader->fread(texture_index_buffer, sizeof(float), poly_nverts, fp); // tu's
for (int vi = 0; vi < poly_nverts; vi++) {
v = poly.verts[vi];
@@ -1866,7 +1866,7 @@ Surface::Copy(Surface& s, Model* m)
for (int i = 0; i < npolys; i++) {
polys[i].vertex_set = vertex_set;
-
+
if (s.polys[i].material)
polys[i].material = (Material*) model->FindMaterial(s.polys[i].material->name);
}
@@ -1956,7 +1956,7 @@ Poly*
Surface::AddPolys(int np, int nv)
{
if ( polys && vertex_set &&
- np > 0 && np + npolys < MAX_POLYS &&
+ np > 0 && np + npolys < MAX_POLYS &&
nv > 0 && nv + vertex_set->nverts < MAX_VERTS)
{
int newverts = nv + vertex_set->nverts;
@@ -1973,7 +1973,7 @@ Surface::AddPolys(int np, int nv)
if (segments.size() > 0) {
Segment* seg = segments.last();
Material* mtl = seg->material;
-
+
for (int i = 0; i < np; i++) {
Poly* p = pnew + i;
p->material = mtl;