From: cloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Mon, 18 May 2020 14:09:42 +0000 (+0000)
Subject: Don't print warning when QC simply checks if a cachepic exists.
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8492adc112ae31591a588ded96040af9e696ac44;p=xonotic%2Fdarkplaces.git

Don't print warning when QC simply checks if a cachepic exists.
From Mario (Xonotic).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12533 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/prvm_cmds.c b/prvm_cmds.c
index e2bba643..b3c69175 100644
--- a/prvm_cmds.c
+++ b/prvm_cmds.c
@@ -3307,7 +3307,7 @@ void VM_precache_pic(prvm_prog_t *prog)
 			flags |= CACHEPICFLAG_MIPMAP;
 	}
 
-	if( !Draw_IsPicLoaded(Draw_CachePic_Flags(s, flags)) )
+	if( !Draw_IsPicLoaded(Draw_CachePic_Flags(s, flags | CACHEPICFLAG_QUIET)) )
 		PRVM_G_INT(OFS_RETURN) = OFS_NULL;
 }
 
@@ -3990,7 +3990,7 @@ void VM_getimagesize(prvm_prog_t *prog)
 	p = PRVM_G_STRING(OFS_PARM0);
 	VM_CheckEmptyString(prog, p);
 
-	pic = Draw_CachePic_Flags (p, CACHEPICFLAG_NOTPERSISTENT);
+	pic = Draw_CachePic_Flags (p, CACHEPICFLAG_QUIET | CACHEPICFLAG_NOTPERSISTENT);
 	if (!Draw_IsPicLoaded(pic))
 	{
 		PRVM_G_VECTOR(OFS_RETURN)[0] = 0;