projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030730-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
image.c
diff --git
a/src/libgame/image.c
b/src/libgame/image.c
index 4e30f4c1a4e7792980fa0f90e2fca0da1a7ef855..925147aba8908c58d4f07180eb3f4199d9e8f010 100644
(file)
--- a/
src/libgame/image.c
+++ b/
src/libgame/image.c
@@
-800,9
+800,16
@@
Bitmap *getBitmapFromImageID(int pos)
char *getTokenFromImageID(int graphic)
{
char *getTokenFromImageID(int graphic)
{
+#if 0
+ /* !!! this does not work for dynamic artwork (crash!) !!! */
struct FileInfo *file_list = (struct FileInfo *)image_info->file_list;
return file_list[graphic].token;
struct FileInfo *file_list = (struct FileInfo *)image_info->file_list;
return file_list[graphic].token;
+#else
+ struct FileInfo *file_list = getImageListEntry(graphic);
+
+ return (file_list != NULL ? file_list->token : NULL);
+#endif
}
char *getImageConfigFilename()
}
char *getImageConfigFilename()