From 90f54911568e6f9b47a5e7561665d92d36eaccfd Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 25 Feb 2021 02:15:36 +0100 Subject: [PATCH] q3map2: dds/ prefix, print log at the right time, when image is found --- tools/quake3/q3map2/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.2