]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
q3map2: dds/ prefix, print log at the right time, when image is found
authorThomas Debesse <dev@illwieckz.net>
Thu, 25 Feb 2021 01:15:36 +0000 (02:15 +0100)
committerThomas Debesse <dev@illwieckz.net>
Fri, 5 Mar 2021 02:17:08 +0000 (03:17 +0100)
tools/quake3/q3map2/image.c

index 93f1b6ed76f19f792d708e7538d68bee351e8833..20ad90ff99d59350b5b58cf34982c7bea2ec5220 100644 (file)
@@ -507,9 +507,6 @@ image_t *ImageLoad( const char *filename ){
 
        image_load_success:
 
-       /* tell user which image file is found for the given texture path */
-       Sys_FPrintf( SYS_VRB, "Loaded image: \"%s\"\n", name );
-
        /* free file buffer */
        free( buffer );
 
@@ -522,6 +519,9 @@ image_t *ImageLoad( const char *filename ){
                return NULL;
        }
 
+       /* tell user which image file is found for the given texture path */
+       Sys_FPrintf( SYS_VRB, "Loaded image: \"%s\"\n", name );
+
        /* set filename */
        image->filename = safe_malloc( strlen( name ) + 1 );
        strcpy( image->filename, name );