From 669dc9148d00318aa4aacfb80ed04b85bce7a759 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 17 Aug 2019 16:20:08 +0200 Subject: [PATCH] So yeah, I just did what the stubbed said --- Sources/EntitiesMP/Common/HUD.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/EntitiesMP/Common/HUD.cpp b/Sources/EntitiesMP/Common/HUD.cpp index 30d0889..f519865 100755 --- a/Sources/EntitiesMP/Common/HUD.cpp +++ b/Sources/EntitiesMP/Common/HUD.cpp @@ -562,8 +562,7 @@ static void DrawAspectCorrectTextureCentered( class CTextureObject *_pTO, FLOAT CTextureData *ptd = (CTextureData*)_pTO->GetData(); FLOAT fTexSizeI = ptd->GetPixWidth(); FLOAT fTexSizeJ = ptd->GetPixHeight(); - FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeJ; // FIXME: not fTexSizeJ/fTexSizeI ?? - STUBBED("fWidth*fTexSizeJ/fTexSizeJ is most likely not intended!"); + FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeI; _pDP->InitTexture( _pTO); _pDP->AddTexture( fX-fWidth*0.5f, fY-fHeight*0.5f, fX+fWidth*0.5f, fY+fHeight*0.5f, 0, 0, 1, 1, col);