From: Holger Schemel Date: Sun, 15 Jun 2008 23:12:05 +0000 (+0200) Subject: rnd-20080616-1-src X-Git-Tag: 3.2.6.0^2~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=88adb1ffb7a63d218d55096b7aee467e42620a40;p=rocksndiamonds.git rnd-20080616-1-src * fixed initialization of gfx_element for level sketch image creation --- diff --git a/ChangeLog b/ChangeLog index 2b11f3c8..39260536 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-06-16 + * fixed initialization of gfx_element for level sketch image creation + 2008-06-15 * added switch for EM style dynamite "[ ] explodes with chain reaction" (with default set to "on" for existing levels, but "off" for all new diff --git a/src/conftime.h b/src/conftime.h index fa35e4ee..19444a83 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2008-06-15 21:07" +#define COMPILE_DATE_STRING "2008-06-16 01:12" diff --git a/src/files.c b/src/files.c index 6c2261d5..c3676315 100644 --- a/src/files.c +++ b/src/files.c @@ -2029,6 +2029,7 @@ int getMappedElement(int element) case EL_KEY_OBSOLETE: element = EL_KEY_1; + break; case EL_EM_KEY_1_FILE_OBSOLETE: element = EL_EM_KEY_1; @@ -9861,6 +9862,8 @@ void CreateLevelSketchImages() Bitmap *bitmap2; int i; + InitElementPropertiesGfxElement(); + bitmap1 = CreateBitmap(TILEX, TILEY, DEFAULT_DEPTH); bitmap2 = CreateBitmap(MINI_TILEX, MINI_TILEY, DEFAULT_DEPTH); @@ -9868,7 +9871,8 @@ void CreateLevelSketchImages() { Bitmap *src_bitmap; int src_x, src_y; - int graphic = el2edimg(i); + int element = getMappedElement(i); + int graphic = el2edimg(element); char basename1[16]; char basename2[16]; char *filename1;