diff --git a/src/3d.c b/src/3d.c index 6d4331a..65b12ce 100644 --- a/src/3d.c +++ b/src/3d.c @@ -74,10 +74,10 @@ void engine_3d_rendertarget_draw_quad( engine_3d_project(&v23,wx4,wy4,wz4,rx,ry,rz,fovHor,fovVert); if ( - (v20.x < -1.0 || v20.x > 1.0 || v20.y < -1.0 || v20.y > 1.0) && - (v21.x < -1.0 || v21.x > 1.0 || v21.y < -1.0 || v21.y > 1.0) && - (v22.x < -1.0 || v22.x > 1.0 || v22.y < -1.0 || v22.y > 1.0) && - (v23.x < -1.0 || v23.x > 1.0 || v23.y < -1.0 || v23.y > 1.0) + (v20.x < -2.0 || v20.x > 2.0 || v20.y < -2.0 || v20.y > 2.0) && + (v21.x < -2.0 || v21.x > 2.0 || v21.y < -2.0 || v21.y > 2.0) && + (v22.x < -2.0 || v22.x > 2.0 || v22.y < -2.0 || v22.y > 2.0) && + (v23.x < -2.0 || v23.x > 2.0 || v23.y < -2.0 || v23.y > 2.0) ) { // Wall is entirely out of bounds return; }