Fix a mistake in r7322

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@7335 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-02-19 05:26:53 +00:00
parent f349dfdabf
commit cf86f63121

View file

@ -549,9 +549,9 @@ vec2_t G_ScreenText(const int32_t font,
}
if (f & TEXT_XRIGHT)
origin.x = -((linewidth>>16)<<16);
origin.x = -(linewidth/z*z);
else if (f & TEXT_XCENTER)
origin.x = -((linewidth>>17)<<16);
origin.x = -(linewidth/2/z*z);
}
if (f & TEXT_YJUSTIFY)
@ -562,9 +562,9 @@ vec2_t G_ScreenText(const int32_t font,
}
if (f & TEXT_YBOTTOM)
origin.y = -((size.y>>16)<<16);
origin.y = -(size.y/z*z);
else if (f & TEXT_YCENTER)
origin.y = -((size.y>>17)<<16);
origin.y = -(size.y/2/z*z);
}
// loop through the string