more '\n' business

From /dev/humancontroller.
This commit is contained in:
Zack Middleton
2012-06-19 15:14:57 +00:00
parent 4cfbbe506c
commit 945f01d4af
12 changed files with 59 additions and 59 deletions

View File

@@ -63,18 +63,18 @@ int ReadValue(source_t *source, float *value)
if (!PC_ExpectAnyToken(source, &token)) return qfalse;
if (!strcmp(token.string, "-"))
{
SourceWarning(source, "negative value set to zero\n");
SourceWarning(source, "negative value set to zero");
if(!PC_ExpectAnyToken(source, &token))
{
SourceError(source, "Missing return value\n");
SourceError(source, "Missing return value");
return qfalse;
}
}
if (token.type != TT_NUMBER)
{
SourceError(source, "invalid return value %s\n", token.string);
SourceError(source, "invalid return value %s", token.string);
return qfalse;
}
@@ -186,7 +186,7 @@ fuzzyseperator_t *ReadFuzzySeperators_r(source_t *source)
{
if (founddefault)
{
SourceError(source, "switch already has a default\n");
SourceError(source, "switch already has a default");
FreeFuzzySeperators_r(firstfs);
return NULL;
} //end if
@@ -236,7 +236,7 @@ fuzzyseperator_t *ReadFuzzySeperators_r(source_t *source)
} //end else if
else
{
SourceError(source, "invalid name %s\n", token.string);
SourceError(source, "invalid name %s", token.string);
return NULL;
} //end else
if (newindent)
@@ -251,7 +251,7 @@ fuzzyseperator_t *ReadFuzzySeperators_r(source_t *source)
else
{
FreeFuzzySeperators_r(firstfs);
SourceError(source, "invalid name %s\n", token.string);
SourceError(source, "invalid name %s", token.string);
return NULL;
} //end else
if (!PC_ExpectAnyToken(source, &token))
@@ -263,7 +263,7 @@ fuzzyseperator_t *ReadFuzzySeperators_r(source_t *source)
//
if (!founddefault)
{
SourceWarning(source, "switch without default\n");
SourceWarning(source, "switch without default");
fs = (fuzzyseperator_t *) GetClearedMemory(sizeof(fuzzyseperator_t));
fs->index = index;
fs->value = MAX_INVENTORYVALUE;
@@ -342,7 +342,7 @@ weightconfig_t *ReadWeightConfig(char *filename)
{
if (config->numweights >= MAX_WEIGHTS)
{
SourceWarning(source, "too many fuzzy weights\n");
SourceWarning(source, "too many fuzzy weights");
break;
} //end if
if (!PC_ExpectTokenType(source, TT_STRING, 0, &token))
@@ -400,7 +400,7 @@ weightconfig_t *ReadWeightConfig(char *filename)
} //end else if
else
{
SourceError(source, "invalid name %s\n", token.string);
SourceError(source, "invalid name %s", token.string);
FreeWeightConfig(config);
FreeSource(source);
return NULL;
@@ -418,7 +418,7 @@ weightconfig_t *ReadWeightConfig(char *filename)
} //end if
else
{
SourceError(source, "invalid name %s\n", token.string);
SourceError(source, "invalid name %s", token.string);
FreeWeightConfig(config);
FreeSource(source);
return NULL;