From d469c089ea7f7b5b431888a4e5a3fc0bae5bc126 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 4 Aug 2019 06:35:18 +0200 Subject: [PATCH] Check if this is the problematic code on Android --- src/r_plane.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_plane.c b/src/r_plane.c index b0dfa5c2..ff7f6888 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -137,7 +137,9 @@ static void R_MapPlane(int y, int x1, int x2, draw_span_vars_t *dsvars) fixed_t distance, length; unsigned index; +#ifndef ANDROID if (!r_wiggle_fix) +#endif { if (planeheight != cachedheight[y]) { @@ -160,6 +162,7 @@ static void R_MapPlane(int y, int x1, int x2, draw_span_vars_t *dsvars) dsvars->xfrac = viewx + FixedMul(finecosine[angle], length) + xoffs; dsvars->yfrac = -viewy - FixedMul(finesine[angle], length) + yoffs; } +#ifndef ANDROID else { float slope, realy; @@ -174,6 +177,7 @@ static void R_MapPlane(int y, int x1, int x2, draw_span_vars_t *dsvars) dsvars->xfrac = viewx + xoffs + (int)(viewcos * realy) + (x1 - centerx) * dsvars->xstep; dsvars->yfrac = -viewy + yoffs - (int)(viewsin * realy) + (x1 - centerx) * dsvars->ystep; } +#endif if (drawvars.filterfloor == RDRAW_FILTER_LINEAR) { dsvars->xfrac -= (FRACUNIT>>1);