From eecee9d94054d9885a960a415a79bd7f0ee5c8be Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 12 Nov 2023 13:56:50 +0100 Subject: [PATCH] port: fix #55 patch submitted by Ryan Dwyer --- src/game/hudmsg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/hudmsg.c b/src/game/hudmsg.c index fe0b6cfbf..650906509 100644 --- a/src/game/hudmsg.c +++ b/src/game/hudmsg.c @@ -1515,7 +1515,9 @@ Gfx *hudmsgsRender(Gfx *gdl) gdl = hudmsgRenderBox(gdl, x - 3, y - 3, x + msg->width + 2, y + msg->height + 2, 1.0f, bordercolour, spc0); #endif - gdl = textRenderProjected(gdl, &x, &y, msg->text, msg->font1, msg->font2, textcolour, viGetWidth(), viGetHeight(), 0, 0); + if (spc0 > 0) { + gdl = textRenderProjected(gdl, &x, &y, msg->text, msg->font1, msg->font2, textcolour, viGetWidth(), viGetHeight(), 0, 0); + } } else { gdl = text0f153a34(gdl, x, y, x + msg->width, y + msg->height, 0); @@ -1597,7 +1599,9 @@ Gfx *hudmsgsRender(Gfx *gdl) gdl = hudmsgRenderBox(gdl, x - 3, y - 3, x + msg->width + 2, y + msg->height + 2, 1.0f, bordercolour, 1.0f - spa8); #endif - gdl = textRenderProjected(gdl, &x, &y, msg->text, msg->font1, msg->font2, textcolour, viGetWidth(), viGetHeight(), 0, 0); + if (spa8 < 1.0f) { + gdl = textRenderProjected(gdl, &x, &y, msg->text, msg->font1, msg->font2, textcolour, viGetWidth(), viGetHeight(), 0, 0); + } } else { gdl = text0f153a34(gdl, x, y, x + msg->width, y + msg->height, 0);