From cf86f631215f1547e268cf426267741d87d82b91 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 19 Feb 2019 05:26:53 +0000 Subject: [PATCH] Fix a mistake in r7322 Patch from Fox. git-svn-id: https://svn.eduke32.com/eduke32@7335 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/screentext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/screentext.cpp b/source/duke3d/src/screentext.cpp index 8753271bd..8187efa13 100644 --- a/source/duke3d/src/screentext.cpp +++ b/source/duke3d/src/screentext.cpp @@ -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