engine: client: touch: fix inverted file extension check

This commit is contained in:
Alibek Omarov 2025-02-28 06:44:21 +03:00
parent 9f77b7dc46
commit 4dec1785ed

View file

@ -938,7 +938,7 @@ static void Touch_AddButton_f( void )
// to let imagelib choose better format // to let imagelib choose better format
// //
// Remove this when old engine migration would be done // 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 ); COM_StripExtension( texture );
if( Cmd_Argc( ) >= 8 ) if( Cmd_Argc( ) >= 8 )