- {
- int clone_graphic = graphic_info[i].clone_from;
-
- if (graphic_info[clone_graphic].clone_from != -1)
- {
- Error(ERR_RETURN_LINE, "-");
- Error(ERR_RETURN, "warning: error found in config file:");
- Error(ERR_RETURN, "- config file: '%s'", getImageConfigFilename());
- Error(ERR_RETURN, "- config token: '%s'", getTokenFromImageID(i));
- Error(ERR_RETURN,
- "error: cannot clone from already cloned graphic '%s'",
- getTokenFromImageID(clone_graphic));
- Error(ERR_RETURN, "custom graphic rejected for this element/action");
-
- if (i == fallback_graphic)
- Error(ERR_EXIT, "fatal error: no fallback graphic available");
-
- Error(ERR_RETURN, "fallback done to 'char_exclam' for this graphic");
- Error(ERR_RETURN_LINE, "-");
-
- set_graphic_parameters(i, fallback_graphic);
- }
- else
- {
- graphic_info[i] = graphic_info[clone_graphic];
- graphic_info[i].clone_from = clone_graphic;
-
-#if 0
- printf("::: graphic %d ['%s'] is cloned from %d ['%s']\n",
- i, getTokenFromImageID(i),
- clone_graphic, getTokenFromImageID(clone_graphic));
-#endif
- }
- }
- }
-#endif