client: port fix of spk/speak commands from old engine

This commit is contained in:
Alibek Omarov
2021-03-09 23:34:12 +03:00
parent 155eb1ba58
commit 4db2aaffc4
2 changed files with 23 additions and 5 deletions
+4 -1
View File
@@ -469,7 +469,10 @@ void VOX_LoadSound( channel_t *pchan, const char *pszin )
// lookup actual string in g_Sentences,
// set pointer to string data
psz = VOX_LookupString( pszin, NULL );
if( pszin[0] == '#' )
psz = (char *)pszin + 1;
else
psz = VOX_LookupString( pszin, NULL );
if( !psz )
{