summary refs log tree commit diff
path: root/src/Decals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Decals.cpp')
-rw-r--r--src/Decals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Decals.cpp b/src/Decals.cpp
index 1fb3063..eb2a90b 100644
--- a/src/Decals.cpp
+++ b/src/Decals.cpp
@@ -44,7 +44,7 @@ int Decals::MakeDecal(int atype, XYZ location, float size, XYZ normal, int poly,
 	if(normalv[2]>normalv[major])major=2;
 
 	if (normalv[0] == 1 || normalv[1] == 1 || normalv[2] == 1) {
-		if (major == 0 && normal.x > 0 || major == 1)
+		if ((major == 0 && normal.x > 0) || major == 1)
 			right = {0.0f, 0.0f, -1.0f};
 		else if (major == 0)
 			right = {0.0f, 0.0f, 1.0f};