diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/Solid.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/Solid.cpp')
-rw-r--r-- | Stars45/Solid.cpp | 10 |
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; |