+2009-05-31
+ * fixed bug with element_info[e].gfx_element not being initialized in
+ early game stage, causing native graphics in EMC level sets to be
+ mapped completely to EL_EMPTY (causing a blank screen when playing)
+ (this only happened when starting the program with an EMC set with
+ native graphics, but not when switching to such a set at runtime)
+
2009-03-26
* extended backwards compatibility mode to allow already fixed bug with
change actions (see "2008-02-05") for existing levels (especially the
-#define COMPILE_DATE_STRING "2009-03-26 10:48"
+#define COMPILE_DATE_STRING "2009-05-31 03:01"
InitElementPropertiesStatic();
InitElementPropertiesEngine(GAME_VERSION_ACTUAL);
+ InitElementPropertiesGfxElement();
print_timestamp_time("[post-video]");
if (DrawingDeactivated(dst_x, dst_y, width, height))
return;
-#if 1
+#if 0
/* !!! 2009-03-24: It seems that this problem still exists with 1.2.12 !!! */
#if defined(TARGET_SDL) && defined(PLATFORM_WIN32)
if (src_bitmap == dst_bitmap)
#define IS_DC_STEELWALL_2(e) ((e) >= EL_DC_STEELWALL_2_LEFT && \
(e) <= EL_DC_STEELWALL_2_SINGLE)
+#if 1
+
#if 1
#define GFX_ELEMENT(e) (element_info[e].gfx_element)
+#else
+#define GFX_ELEMENT(e) (element_info[e].gfx_element == \
+ (element_info[e].use_gfx_element ? \
+ element_info[e].gfx_element : e) ? \
+ element_info[e].gfx_element : \
+ element_info[e].gfx_element + \
+ 0 * printf("::: %d: %d <-> %d\n", \
+ e, \
+ element_info[e].gfx_element, \
+ element_info[e].use_gfx_element ? \
+ element_info[e].gfx_element : e))
+#endif
+
#else
#define GFX_ELEMENT(e) (element_info[e].use_gfx_element ? \
element_info[e].gfx_element : e)