-#define COMPILE_DATE_STRING "[2002-12-11 00:49]"
+#define COMPILE_DATE_STRING "[2002-12-11 23:34]"
src_y + TILEY > src_bitmap->height)
Error(ERR_EXIT, "InitGraphicInfo: image bitmap '%s' too small for graphic object %d (normal size)", src_bitmap->source_filename, i);
+#if 0
getMiniGraphicSource(i, &src_bitmap, &src_x, &src_y);
if (src_x + MINI_TILEX > src_bitmap->width ||
src_y + MINI_TILEY > src_bitmap->height)
if (src_x + MICRO_TILEX > src_bitmap->width ||
src_y + MICRO_TILEY > src_bitmap->height)
Error(ERR_EXIT, "InitGraphicInfo: image bitmap '%s' too small for graphic object %d ('micro' size)", src_bitmap->source_filename, i);
-
+#endif
#if 0
{
{"THE HERO:", "(Is _this_ guy good old Rockford?)"},
{"Normal sand:", "You can dig through it"},
{"Empty field:", "You can walk through it"},
- {"Quicksand: You cannot pass it,", "but rocks can fall though it"},
+ {"Quicksand: You cannot pass it,", "but rocks can fall through it"},
{"Massive Wall:", "Nothing can go through it"},
{"Normal Wall: You can't go through", "it, but you can bomb it away"},
{"Growing Wall: Grows in several di-", "rections if there is an empty field"},
int src_x = mini_startx + new_graphic_info[graphic].src_x / 2;
int src_y = mini_starty + new_graphic_info[graphic].src_y / 2;
+ if (src_x + MINI_TILEX > src_bitmap->width ||
+ src_y + MINI_TILEY > src_bitmap->height)
+ {
+ /* graphic of desired size seems not to be contained in this image;
+ dirty workaround: get it from the middle of the normal sized image */
+
+ getGraphicSource(graphic, 0, &src_bitmap, &src_x, &src_y);
+ src_x += (TILEX / 2 - MINI_TILEX / 2);
+ src_y += (TILEY / 2 - MINI_TILEY / 2);
+ }
+
*bitmap = src_bitmap;
*x = src_x;
*y = src_y;
int src_x = mini_startx + new_graphic_info[graphic].src_x / 8;
int src_y = mini_starty + new_graphic_info[graphic].src_y / 8;
+ if (src_x + MICRO_TILEX > src_bitmap->width ||
+ src_y + MICRO_TILEY > src_bitmap->height)
+ {
+ /* graphic of desired size seems not to be contained in this image;
+ dirty workaround: get it from the middle of the normal sized image */
+
+ getGraphicSource(graphic, 0, &src_bitmap, &src_x, &src_y);
+ src_x += (TILEX / 2 - MICRO_TILEX / 2);
+ src_y += (TILEY / 2 - MICRO_TILEY / 2);
+ }
+
*bitmap = src_bitmap;
*x = src_x;
*y = src_y;