diff --git a/src/r_main.c b/src/r_main.c
index c2f2fcb69bc7364e139f0b386bd8c695122dc3ce..23eff452cf96f9f46c2db5cf084c032280e9ebcf 100644
--- a/src/r_main.c
+++ b/src/r_main.c
@@ -607,7 +607,7 @@ void R_ExecuteSetViewSize(void)
 	if (rendermode == render_soft)
 	{
 		// this is only used for planes rendering in software mode
-		j = viewheight*4;
+		j = viewheight*8;
 		for (i = 0; i < j; i++)
 		{
 			dy = ((i - viewheight*2)<<FRACBITS) + FRACUNIT/2;
@@ -952,6 +952,7 @@ void R_SkyboxFrame(player_t *player)
 
 	// recalc necessary stuff for mouseaiming
 	// slopes are already calculated for the full possible view (which is 4*viewheight).
+	// 18/08/18: (No it's actually 8*viewheight, thanks MPC aka Jimita for finding this out)
 
 	if (rendermode == render_soft)
 	{
@@ -1075,6 +1076,7 @@ void R_SetupFrame(player_t *player, boolean skybox)
 
 	// recalc necessary stuff for mouseaiming
 	// slopes are already calculated for the full possible view (which is 4*viewheight).
+	// 18/08/18: (No it's actually 8*viewheight, thanks MPC aka Jimita for finding this out)
 
 	if (rendermode == render_soft)
 	{
diff --git a/src/r_plane.c b/src/r_plane.c
index 8635a157875ac3322713865ee662a35f15fff38c..b09ac4843b6d63d5e7d574a5dbecf080fd7f06b5 100644
--- a/src/r_plane.c
+++ b/src/r_plane.c
@@ -89,7 +89,7 @@ static fixed_t planeheight;
 //                (this is to calculate yslopes only when really needed)
 //                (when mouselookin', yslope is moving into yslopetab)
 //                Check R_SetupFrame, R_SetViewSize for more...
-fixed_t yslopetab[MAXVIDHEIGHT*4];
+fixed_t yslopetab[MAXVIDHEIGHT*8];
 fixed_t *yslope;
 
 fixed_t distscale[MAXVIDWIDTH];
diff --git a/src/r_plane.h b/src/r_plane.h
index 68af1f061e14677037ee7b924849cef4f6766d2d..2ab1e83f5a386d612cd62c1f5b0148195803d6c4 100644
--- a/src/r_plane.h
+++ b/src/r_plane.h
@@ -75,7 +75,7 @@ extern INT16 *lastopening, *openings;
 extern size_t maxopenings;
 
 extern INT16 floorclip[MAXVIDWIDTH], ceilingclip[MAXVIDWIDTH];
-extern fixed_t frontscale[MAXVIDWIDTH], yslopetab[MAXVIDHEIGHT*4];
+extern fixed_t frontscale[MAXVIDWIDTH], yslopetab[MAXVIDHEIGHT*8];
 extern fixed_t cachedheight[MAXVIDHEIGHT];
 extern fixed_t cacheddistance[MAXVIDHEIGHT];
 extern fixed_t cachedxstep[MAXVIDHEIGHT];