print filenames for errors in map and model config files

This commit is contained in:
ac-stef
2017-05-17 14:13:45 +02:00
parent 6bafdb0037
commit ec2cdb4533
8 changed files with 36 additions and 29 deletions
+2
View File
@@ -830,6 +830,7 @@ COMMANDF(mapsound, "si", (char *name, int *maxuses)
{
conoutf("\f3error: too many mapsounds");
flagmapconfigerror(LWW_CONFIGERR);
scripterr();
}
else if(!strncmp(stripped, mapsoundbasepath, mapsoundbasepath_n))
{
@@ -846,6 +847,7 @@ COMMANDF(mapsound, "si", (char *name, int *maxuses)
{
conoutf("\f3error: mapsound \"%s\" outside packages/audio/", stripped);
flagmapconfigerror(LWW_CONFIGERR);
scripterr();
}
});