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