src/editmodes/circleMode.cpp

changeset 1068
283de3bd8b0e
parent 1065
c8ecddbd99e9
child 1072
9ce9496427f2
--- a/src/editmodes/circleMode.cpp	Sat Jan 28 16:30:27 2017 +0200
+++ b/src/editmodes/circleMode.cpp	Sat Jan 28 17:14:05 2017 +0200
@@ -72,12 +72,12 @@
 
 	Matrix transform = templates[renderer()->camera() % 3];
 
-	for (int i = 0; i < 9; ++i)
+	for (double& value : transform)
 	{
-		if (transform[i] == 2)
-			transform[i] = scale;
-		else if (transform[i] == 1 and renderer()->camera() >= 3)
-			transform[i] = -1;
+		if (value == 2)
+			value = scale;
+		else if (value == 1 and renderer()->camera() >= 3)
+			value = -1;
 	}
 
 	return transform;

mercurial