diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-30 19:11:49 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-30 19:11:49 +0000 |
| commit | 29173b3199ea526b6f9de13ee9255db3900f3f42 (patch) | |
| tree | afe8819193e22f50ec88100c0c2242105dd98f3a /src/image.c | |
| parent | 1f7f0b8da7a868b40c23f034c75bce46713c5c32 (diff) | |
- program si kontroluje ci existuju subory ktore pouziva
git-svn-id: http://opensvn.csie.org/tuxanci_ng@48 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/image.c')
| -rwxr-xr-x | src/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 3726167..a7c2261 100755 --- a/src/image.c +++ b/src/image.c @@ -38,8 +38,11 @@ static SDL_Surface *loadImage(const char *filename, int alpha) char str[STR_PATH_SIZE]; + sprintf(str, PATH_IMAGE "%s", filename); + accessExistFile(str); + if( ( tmp = IMG_Load(str) ) == NULL ) { fprintf(stderr, "%s\n", SDL_GetError()); |