Skip to content

Commit

Permalink
Tweaked an error message in R_GetPatchInfo (invalid arguments).
Browse files Browse the repository at this point in the history
Added a verbose comment in R_PrecachePatch (unknown Patch).
  • Loading branch information
danij-deng committed May 27, 2010
1 parent 4f8140c commit dc774c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/engine/portable/src/r_data.c
Expand Up @@ -1002,7 +1002,7 @@ patchid_t R_RegisterAsPatch(const char* name)
boolean R_GetPatchInfo(patchid_t id, patchinfo_t* info)
{
if(!info)
Con_Error("R_GetPatchInfo: Info argument cannot be NULL.");
Con_Error("R_GetPatchInfo: Argument 'info' cannot be NULL.");
{
const patchtex_t* p;
memset(info, 0, sizeof(*info));
Expand Down Expand Up @@ -1042,6 +1042,7 @@ patchid_t R_PrecachePatch(const char* name, patchinfo_t* info)
if(info)
R_GetPatchInfo(patch, info);
}
VERBOSE(Con_Message("R_GeR_PrecachePatch: Warning, unknown Patch %s.\n", name));
return patch;
}
}
Expand Down

0 comments on commit dc774c8

Please sign in to comment.