From fadc7d650da1dcb81d162b5dda1534acb81466c1 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <c.oelckers@zdoom.fake>
Date: Mon, 4 Apr 2016 12:02:53 +0200
Subject: [PATCH] - fixed: segplane_t::SetAtHeight initialized the plane
 normal's Z incorrectly.

---
 src/r_defs.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/r_defs.h b/src/r_defs.h
index c70cd1b5e..d6c4b6221 100644
--- a/src/r_defs.h
+++ b/src/r_defs.h
@@ -446,18 +446,18 @@ public:
 		normal.X = normal.Y = 0;
 		if (ceiling)
 		{
-			normal.Z = negiC = 1;
+			normal.Z = -1;
+			negiC = 1;
 			D = height;
 		}
 		else
 		{
-			normal.Z = negiC = -1;
+			normal.Z = 1;
+			negiC = -1;
 			D = -height;
 		}
 	}
 
-	inline void SetAtHeight(fixed_t height, int ceiling) = delete;
-
 	bool CopyPlaneIfValid (secplane_t *dest, const secplane_t *opp) const;
 
 };