src/editmodes/circleMode.cpp

changeset 1123
15e46ea3151f
parent 1104
edddb9b0db9e
child 1129
2b20261dc511
--- a/src/editmodes/circleMode.cpp	Fri Feb 10 23:06:24 2017 +0200
+++ b/src/editmodes/circleMode.cpp	Sun Feb 12 16:02:02 2017 +0200
@@ -71,13 +71,13 @@
 		{ 0, 1, 0, 2, 0, 0, 0, 0, 2 },
 	};
 
-	Matrix transform = templates[renderer()->camera() % 3];
+	Matrix transform = templates[static_cast<int>(renderer()->camera()) % 3];
 
 	for (double& value : transform)
 	{
 		if (value == 2)
 			value = scale;
-		else if (value == 1 and renderer()->camera() >= 3)
+		else if (value == 1 and static_cast<int>(renderer()->camera()) >= 3)
 			value = -1;
 	}
 
@@ -164,7 +164,7 @@
 			quad->setColor(MainColor);
 
 			// Ensure the quads always are BFC-front towards the camera
-			if (renderer()->camera() % 3 <= 0)
+			if (static_cast<int>(renderer()->camera()) % 3 <= 0)
 				quad->invert();
 		}
 	}

mercurial