]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Don't print warning when QC simply checks if a cachepic exists.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 May 2020 14:09:42 +0000 (14:09 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 May 2020 14:09:42 +0000 (14:09 +0000)
From Mario (Xonotic).

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

prvm_cmds.c

index e2bba64320f20711c5ffcf53aa7694ece3301e07..b3c6917551b83ab3a3c520e0b8724642941a3c71 100644 (file)
@@ -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;