mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 08:50:55 +00:00
yet another fix for mapster32 sound
git-svn-id: https://svn.eduke32.com/eduke32@1259 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
59e2177364
commit
e5928081f5
1 changed files with 6 additions and 4 deletions
|
@ -1895,7 +1895,7 @@ static void SoundDisplay()
|
||||||
printmessage16(" FILE NAME PITCH RANGE PRI FLAGS VOLUME");
|
printmessage16(" FILE NAME PITCH RANGE PRI FLAGS VOLUME");
|
||||||
for (i=0; j=cursnd+i, i<SOUND_NUMDISPLINES && j<g_numsounds; i++)
|
for (i=0; j=cursnd+i, i<SOUND_NUMDISPLINES && j<g_numsounds; i++)
|
||||||
{
|
{
|
||||||
int32_t l, k=g_sndnum[j];
|
int32_t l, m, k=g_sndnum[j];
|
||||||
sound_t *snd=&g_sounds[k];
|
sound_t *snd=&g_sounds[k];
|
||||||
char *cp;
|
char *cp;
|
||||||
|
|
||||||
|
@ -1913,9 +1913,11 @@ static void SoundDisplay()
|
||||||
if (l<=16)
|
if (l<=16)
|
||||||
cp = snd->filename;
|
cp = snd->filename;
|
||||||
else
|
else
|
||||||
cp = snd->filename + l-16;
|
cp = snd->filename + l-15;
|
||||||
for (l = Bsnprintf(disptext[i]+26, 16, cp); l<16; l++)
|
for (m = Bsnprintf(disptext[i]+26, 16, cp); m<16; m++)
|
||||||
disptext[i][26+l] = ' ';
|
disptext[i][26+m] = ' ';
|
||||||
|
if (l>16)
|
||||||
|
disptext[i][26] = disptext[i][27] = disptext[i][28] = '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
printext16(8, ydim-overridepm16y+28+i*9,
|
printext16(8, ydim-overridepm16y+28+i*9,
|
||||||
|
|
Loading…
Reference in a new issue