Skip to content

Commit

Permalink
engine: client: allow VOX words use other formats than WAV
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Dec 5, 2024
1 parent d0112a9 commit f5d635b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/client/s_vox.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void VOX_LoadSound( channel_t *ch, const char *pszin )
if( !VOX_ParseWordParams( rgpparseword[i], &ch->words[j], i == 0 ))
continue;

if( Q_snprintf( pathbuffer, sizeof( pathbuffer ), "%s%s.wav", szpath, rgpparseword[i] ) < 0 )
if( Q_snprintf( pathbuffer, sizeof( pathbuffer ), "%s%s", szpath, rgpparseword[i] ) < 0 )
{
Con_Printf( S_ERROR "%s: path to word in sentence %s is too long\n", __func__, pszin );
return;
Expand Down

0 comments on commit f5d635b

Please sign in to comment.