From 7c4d8699b2e9ba64f98bd2a0290080726fa8ccfe Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 2 Sep 2008 22:07:07 +0000 Subject: - areny su ulozene v *.zip archivoch ( totalne rozmrdany zdrojovy kod -- zajtra to dokoncim ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@263 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/client/image.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/client/image.c') diff --git a/src/client/image.c b/src/client/image.c index bcac02c..86f80af 100755 --- a/src/client/image.c +++ b/src/client/image.c @@ -40,8 +40,15 @@ static SDL_Surface *loadImage(const char *filename, int alpha) char str[STR_PATH_SIZE]; - sprintf(str, PATH_IMAGE "%s", filename); - + if( filename[0] != '/' ) + { + sprintf(str, PATH_IMAGE "%s", filename); + } + else + { + strcpy(str, filename); + } + accessExistFile(str); if( ( tmp = IMG_Load(str) ) == NULL ) -- cgit v1.2.3