Skip to content

Commit

Permalink
Check if this is the problematic code on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Aug 4, 2019
1 parent 54188e4 commit d469c08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/r_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
{
Expand All @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit d469c08

Please sign in to comment.