Skip to content

Commit

Permalink
Fixed only log in R_MaterialNumForName when the name being searched f…
Browse files Browse the repository at this point in the history
…or is not found.
  • Loading branch information
danij committed Oct 7, 2008
1 parent 0f49c60 commit a0b816f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/r_materials.c
Expand Up @@ -336,7 +336,7 @@ materialnum_t R_MaterialNumForName(const char* name, materialtype_t type)
materialnum_t result = R_MaterialCheckNumForName(name, type);

// Not found.
if(!levelSetup) // Don't announce during level setup.
if(result = 0 && !levelSetup) // Don't announce during level setup.
Con_Message("R_MaterialNumForName: %.8s type %i not found!\n",
name, type);
return result;
Expand Down

0 comments on commit a0b816f

Please sign in to comment.