mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Throw a warning when attempting to use CON_DEFINESOUND with a sound index that has already been defined
git-svn-id: https://svn.eduke32.com/eduke32@7810 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
67dc0cb5f8
commit
763b4b8d7f
1 changed files with 6 additions and 0 deletions
|
@ -5646,6 +5646,12 @@ repeatcase:
|
|||
g_errorCnt++;
|
||||
k = MAXSOUNDS-1;
|
||||
}
|
||||
else if (EDUKE32_PREDICT_FALSE(g_sounds[k].filename != NULL))
|
||||
{
|
||||
initprintf("%s:%d: warning: sound %d already defined (%s)\n",g_scriptFileName,g_lineNumber,k,g_sounds[k].filename);
|
||||
g_warningCnt++;
|
||||
}
|
||||
|
||||
g_scriptPtr--;
|
||||
i = 0;
|
||||
C_SkipComments();
|
||||
|
|
Loading…
Reference in a new issue