From 4dec1785ed72219e09775aa3af953bb36fcc88f3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 28 Feb 2025 06:44:21 +0300 Subject: [PATCH] engine: client: touch: fix inverted file extension check --- engine/client/in_touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index d5648ada..e389e636 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -938,7 +938,7 @@ static void Touch_AddButton_f( void ) // to let imagelib choose better format // // Remove this when old engine migration would be done - if( Q_stricmp( COM_FileExtension( texture ), "tga" )) + if( !Q_stricmp( COM_FileExtension( texture ), "tga" )) COM_StripExtension( texture ); if( Cmd_Argc( ) >= 8 )