+ if (!img_info->contains_small_images)
+ return FALSE;
+
+ // at this point, small images already exist for this image;
+ // now do some checks that may require re-creating small (or in-game) images
+
+ // special case 1:
+ //
+ // check if the configured tile size for an already loaded image has changed
+ // from one level set to another; this should usually not happen, but if a
+ // custom artwork set redefines classic (or default) graphics with wrong tile
+ // size (by mistake or by intention), it will be corrected to its original
+ // tile size here by forcing complete re-creation of all small images again
+
+ if (!strEqual(img_info->leveldir, leveldir_current->identifier) &&
+ img_info->conf_tile_size != tile_size)
+ {
+ int bitmap_nr = GET_BITMAP_ID_FROM_TILESIZE(img_info->conf_tile_size);
+ int i;