diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 17:30:37 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 17:30:37 +0000 |
commit | 7156b2e5a72fb20c9fe1ffcc61b61470959c108f (patch) | |
tree | 88a2fa7520e5e8b21517303f9ddb5cbfd2fac9f5 /Magic2/Selector.cpp | |
parent | f3f3a2b7fbd1df41cce104d62e88a6b04869298b (diff) | |
download | starshatter-7156b2e5a72fb20c9fe1ffcc61b61470959c108f.zip starshatter-7156b2e5a72fb20c9fe1ffcc61b61470959c108f.tar.gz starshatter-7156b2e5a72fb20c9fe1ffcc61b61470959c108f.tar.bz2 |
More of the same...
Diffstat (limited to 'Magic2/Selector.cpp')
-rw-r--r-- | Magic2/Selector.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Magic2/Selector.cpp b/Magic2/Selector.cpp index f0338ac..c79f813 100644 --- a/Magic2/Selector.cpp +++ b/Magic2/Selector.cpp @@ -35,7 +35,7 @@ Selector::Selector(Selection* s) own_selection = true;
}
- strcpy(name, "Selector");
+ strcpy_s(name, "Selector");
}
Selector::~Selector()
@@ -185,7 +185,7 @@ Selector::End() }
// find all selected polys:
- for (i = 0; i < s->NumPolys(); i++) {
+ for (int i = 0; i < s->NumPolys(); i++) {
Poly* poly = s->GetPolys() + i;
bool will_select = true;
@@ -230,7 +230,7 @@ Selector::SelectAll(int select_mode) selection->GetPolys().append(s->GetPolys() + i);
}
- for (i = 0; i < s->NumVerts(); i++) {
+ for (int i = 0; i < s->NumVerts(); i++) {
DWORD value = (iter.index() << 16) | i;
selection->GetVerts().append(value);
}
@@ -259,7 +259,7 @@ Selector::SelectInverse() selection->AddPoly(p);
}
- for (i = 0; i < s->NumVerts(); i++) {
+ for (int i = 0; i < s->NumVerts(); i++) {
if (selection->Contains(s_index, i))
selection->RemoveVert(s_index, i);
else
@@ -284,7 +284,7 @@ Selector::SelectSurface(Surface* s, int select_mode) selection->RemovePoly(s->GetPolys() + i);
}
- for (i = 0; i < s->NumVerts(); i++) {
+ for (int i = 0; i < s->NumVerts(); i++) {
selection->RemoveVert(index, i);
}
}
@@ -293,7 +293,7 @@ Selector::SelectSurface(Surface* s, int select_mode) selection->AddPoly(s->GetPolys() + i);
}
- for (i = 0; i < s->NumVerts(); i++) {
+ for (int i = 0; i < s->NumVerts(); i++) {
selection->AddVert(index, i);
}
}
|