smallish optimize
This commit is contained in:
@@ -1165,7 +1165,11 @@ static bool ParseTextureNameAndOption(std::string *texname,
|
|||||||
token += strspn(token, " \t"); // skip space
|
token += strspn(token, " \t"); // skip space
|
||||||
|
|
||||||
a_tok = token2tok(token);
|
a_tok = token2tok(token);
|
||||||
|
|
||||||
|
|
||||||
|
//tigra: minimize checks
|
||||||
|
if(a_tok>=TOK_blendu && a_tok<=TOK_mm)
|
||||||
|
{
|
||||||
//if ((0 == strncmp(token, "-blendu", 7)) && IS_SPACE((token[7])))
|
//if ((0 == strncmp(token, "-blendu", 7)) && IS_SPACE((token[7])))
|
||||||
if (a_tok == TOK_blendu)
|
if (a_tok == TOK_blendu)
|
||||||
{
|
{
|
||||||
@@ -1240,6 +1244,8 @@ static bool ParseTextureNameAndOption(std::string *texname,
|
|||||||
token += 4;
|
token += 4;
|
||||||
parseReal2(&(texopt->brightness), &(texopt->contrast), &token, 0.0, 1.0);
|
parseReal2(&(texopt->brightness), &(texopt->contrast), &token, 0.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// Assume texture filename
|
// Assume texture filename
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user