projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version number set to 4.3.4.1
[rocksndiamonds.git]
/
src
/
libgame
/
image.c
diff --git
a/src/libgame/image.c
b/src/libgame/image.c
index 820b966cd9ae1036745082c9942d41aa3cad08a4..e182a495fd7c524b4719761c3457ecdc4093fac2 100644
(file)
--- a/
src/libgame/image.c
+++ b/
src/libgame/image.c
@@
-43,8
+43,7
@@
static void *Load_Image(char *filename)
if ((img_info->bitmaps[IMG_BITMAP_STANDARD] = LoadImage(filename)) == NULL)
{
if ((img_info->bitmaps[IMG_BITMAP_STANDARD] = LoadImage(filename)) == NULL)
{
- Warn("cannot load image file '%s': LoadImage() failed: %s",
- filename, GetError());
+ Warn("cannot load image file '%s': LoadImage() failed", filename);
free(img_info);
free(img_info);
@@
-140,13
+139,6
@@
char *getTokenFromImageID(int graphic)
return (file_list != NULL ? file_list->token : NULL);
}
return (file_list != NULL ? file_list->token : NULL);
}
-char *getFilenameFromImageID(int graphic)
-{
- struct FileInfo *file_list = getImageListEntryFromImageID(graphic);
-
- return (file_list != NULL ? file_list->filename : NULL);
-}
-
int getImageIDFromToken(char *token)
{
struct FileInfo *file_list = image_info->file_list;
int getImageIDFromToken(char *token)
{
struct FileInfo *file_list = image_info->file_list;