If additional editor graphics are defined for certain BD elements,
also use these graphics for scanned BD elements in the level editor
(which always use the graphics of their non-scanned counterparts).
int el2edimg_with_frame(int element, int *graphic, int *frame)
{
+ // make sure to use special editor graphics for scanned elements, if available
+ if (IS_BDX_SCANNED_ELEMENT(element))
+ {
+ int element_bd_scanned = map_element_RND_to_BD_cave(element);
+ int element_bd_unscanned = getNonScannedElement_BD(element_bd_scanned);
+
+ element = map_element_BD_to_RND_cave(element_bd_unscanned);
+ }
+
*graphic = el2edimg(element);
*frame = 0;