/***********************************************************
* Rocks'n'Diamonds -- McDuffin Strikes Back! *
*----------------------------------------------------------*
-* (c) 1995-2001 Artsoft Entertainment *
+* (c) 1995-2002 Artsoft Entertainment *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
}
}
-int el2gfx(int element)
+int el2gfx_OLD(int element)
{
switch(element)
{
}
}
}
+
+int el2gfx(int element)
+{
+ int graphic_OLD = el2gfx_OLD(element);
+ int graphic_NEW = element_info[element].graphic;
+
+ if (element >= MAX_ELEMENTS)
+ {
+ Error(ERR_WARN, "el2gfx: element == %d >= MAX_ELEMENTS", element);
+ }
+
+ if (graphic_NEW != graphic_OLD)
+ {
+ Error(ERR_WARN, "el2gfx: graphic_NEW (%d) != graphic_OLD (%d)",
+ graphic_NEW, graphic_OLD);
+ }
+
+ return graphic_NEW;
+}