Remove a couple adds from each pixel of morph mapping

This commit is contained in:
fickleheart 2020-01-18 10:53:23 -06:00
parent af4479924a
commit 8679606ebb
1 changed files with 9 additions and 2 deletions

View File

@ -770,7 +770,11 @@ void R_CheckViewMorph(void)
} }
} }
else else
{
#endif #endif
x1 += halfwidth;
y1 += halfheight;
for (vy = 0; vy < halfheight; vy++) for (vy = 0; vy < halfheight; vy++)
{ {
x2 = x1; x2 = x1;
@ -780,8 +784,8 @@ void R_CheckViewMorph(void)
for (vx = 0; vx < vid.width; vx++) for (vx = 0; vx < vid.width; vx++)
{ {
usedx = halfwidth+x2; usedx = x2;
usedy = halfheight+y2; usedy = y2;
usedpos = usedx + usedy*vid.width; usedpos = usedx + usedy*vid.width;
@ -793,6 +797,9 @@ void R_CheckViewMorph(void)
pos++; pos++;
} }
} }
#ifdef WOUGHMP_WOUGHMP
}
#endif
viewmorph.use = true; viewmorph.use = true;
} }