From: Thomas Debesse Date: Thu, 25 Feb 2021 01:15:36 +0000 (+0100) Subject: q3map2: dds/ prefix, print log at the right time, when image is found X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=90f54911568e6f9b47a5e7561665d92d36eaccfd;p=xonotic%2Fnetradiant.git q3map2: dds/ prefix, print log at the right time, when image is found --- diff --git a/tools/quake3/q3map2/image.c b/tools/quake3/q3map2/image.c index 93f1b6ed..20ad90ff 100644 --- a/tools/quake3/q3map2/image.c +++ b/tools/quake3/q3map2/image.c @@ -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 );