Fix up dehacked, adjust voice allocation printouts

This commit is contained in:
yamamama 2025-11-16 14:42:41 -05:00
parent 75de5ed71a
commit f48317a045
2 changed files with 3 additions and 3 deletions

View file

@ -794,11 +794,11 @@ static void DEH_LoadDehackedFile(MYFILE *f, boolean mainfile)
if (i == MAXSKINVOICES)
{
// Found nothing; auto-allocate our voice.
const INT32 allocresult = R_AllocKartVoice(false, word, &i);
const INT32 allocresult = R_AllocKartVoice(false, word2, &i);
if (allocresult < 0)
{
deh_warning("Voice '%s' could not be allocated.", word);
deh_warning("Voice '%s' could not be allocated.", word2);
ignorelines(f);
}
}

View file

@ -1285,7 +1285,7 @@ INT32 R_AllocKartVoice(boolean skinalloc, const char* name, INT32 *out)
return -1;
}
CONS_Printf("Voice KVOICE_%s allocated.\n",voxname_upper);
CONS_Printf("Voice %s allocated.\n",voxname_upper);
DEH_Link(voxname_upper, &skinvoices[numskinvoices].info, &voicenames);
*out = numskinvoices++;