summaryrefslogtreecommitdiffhomepage
path: root/Magic2/Selector.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Magic2/Selector.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Magic2/Selector.cpp')
-rw-r--r--Magic2/Selector.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Magic2/Selector.cpp b/Magic2/Selector.cpp
index 0b37f83..2dad00f 100644
--- a/Magic2/Selector.cpp
+++ b/Magic2/Selector.cpp
@@ -127,10 +127,10 @@ Selector::End()
{
ModelView* view = ModelView::FindView(view_mode);
view_mode = 0;
-
+
// get the model:
if (!model || !nmarks || !view) return;
-
+
// if not adding to selection:
if (select_mode == SELECT_REPLACE) {
Clear();
@@ -159,7 +159,7 @@ Selector::End()
CRgn rgn;
rgn.CreatePolygonRgn(pts, poly->nverts, ALTERNATE);
-
+
if (rgn.PtInRegion(marks[0])) {
if (select_mode == SELECT_REMOVE) {
selection->RemovePoly(poly);
@@ -214,7 +214,7 @@ Selector::End()
bool will_select = true;
for (int v = 0; v < poly->nverts && will_select; v++)
- will_select = will_select &&
+ will_select = will_select &&
selection->Contains((WORD) s_iter.index(), poly->verts[v]);
if (will_select)
@@ -403,7 +403,7 @@ Selector::Reselect()
bool will_select = true;
for (int v = 0; v < poly->nverts && will_select; v++)
- will_select = will_select &&
+ will_select = will_select &&
selection->Contains(s_index, poly->verts[v]);
if (will_select)