From: Holger Schemel Date: Sat, 18 Sep 2004 02:10:52 +0000 (+0200) Subject: rnd-20040918-2-src X-Git-Tag: 3.1.1^2~63 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=afc13e1c0cca61ea29a91198f1e36d22c0c9e7e4;p=rocksndiamonds.git rnd-20040918-2-src --- diff --git a/src/conftime.h b/src/conftime.h index e0ae55e6..f688d3be 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2004-09-18 03:18]" +#define COMPILE_DATE_STRING "[2004-09-18 04:09]" diff --git a/src/editor.c b/src/editor.c index aa07d4b8..42ba6bb8 100644 --- a/src/editor.c +++ b/src/editor.c @@ -9017,6 +9017,8 @@ static void HandleControlButtons(struct GadgetInfo *gi) CopyPlayfield(level.field, FieldBackup); CopyPlayfield(Feld, level.field); + CopyNativeLevel_RND_to_Native(&level); + UnmapLevelEditorGadgets(); UndrawSpecialEditorDoor(); diff --git a/src/files.c b/src/files.c index 4b4ddebd..601c74cf 100644 --- a/src/files.c +++ b/src/files.c @@ -1860,28 +1860,28 @@ static int map_element_RND_to_EM(int element_rnd) { Xfake_door_6, EL_EMC_GATE_6_GRAY }, { Xfake_door_7, EL_EMC_GATE_7_GRAY }, { Xfake_door_8, EL_EMC_GATE_8_GRAY }, - { Xsteel_1, EL_UNKNOWN }, + { Xsteel_1, EL_STEELWALL }, { Xsteel_2, EL_UNKNOWN }, - { Xsteel_3, EL_UNKNOWN }, + { Xsteel_3, EL_EMC_STEELWALL_1 }, { Xsteel_4, EL_UNKNOWN }, - { Xwall_1, EL_UNKNOWN }, + { Xwall_1, EL_WALL }, { Xwall_2, EL_UNKNOWN }, { Xwall_3, EL_UNKNOWN }, { Xwall_4, EL_UNKNOWN }, - { Xround_wall_1, EL_UNKNOWN }, + { Xround_wall_1, EL_WALL_SLIPPERY }, { Xround_wall_2, EL_UNKNOWN }, { Xround_wall_3, EL_UNKNOWN }, { Xround_wall_4, EL_UNKNOWN }, { Xdecor_1, EL_UNKNOWN }, - { Xdecor_2, EL_UNKNOWN }, - { Xdecor_3, EL_UNKNOWN }, - { Xdecor_4, EL_UNKNOWN }, - { Xdecor_5, EL_UNKNOWN }, - { Xdecor_6, EL_UNKNOWN }, + { Xdecor_2, EL_EMC_WALL_6 }, + { Xdecor_3, EL_EMC_WALL_4 }, + { Xdecor_4, EL_EMC_WALL_5 }, + { Xdecor_5, EL_EMC_WALL_7 }, + { Xdecor_6, EL_EMC_WALL_8 }, { Xdecor_7, EL_UNKNOWN }, - { Xdecor_8, EL_UNKNOWN }, - { Xdecor_9, EL_UNKNOWN }, - { Xdecor_10, EL_UNKNOWN }, + { Xdecor_8, EL_EMC_WALL_1 }, + { Xdecor_9, EL_EMC_WALL_2 }, + { Xdecor_10, EL_EMC_WALL_3 }, { Xdecor_11, EL_UNKNOWN }, { Xdecor_12, EL_UNKNOWN }, { Xalpha_0, EL_CHAR('0') }, @@ -2523,12 +2523,22 @@ static void LoadLevelFromFileInfo_EM(struct LevelInfo *level, { if (!LoadNativeLevel_EM(level_file_info->filename)) level->no_valid_file = TRUE; - - CopyNativeLevel_EM_to_RND(level); } #endif +void CopyNativeLevel_RND_to_Native(struct LevelInfo *level) +{ + if (level->game_engine_type == GAME_ENGINE_TYPE_EM) + CopyNativeLevel_RND_to_EM(level); +} + +void CopyNativeLevel_Native_to_RND(struct LevelInfo *level) +{ + if (level->game_engine_type == GAME_ENGINE_TYPE_EM) + CopyNativeLevel_EM_to_RND(level); +} + /* ------------------------------------------------------------------------- */ /* functions for loading SP level */ @@ -2902,6 +2912,8 @@ void LoadLevelFromFileInfo(struct LevelInfo *level, if (level->game_engine_type == GAME_ENGINE_TYPE_UNKNOWN) level->game_engine_type = GAME_ENGINE_TYPE_RND; + + CopyNativeLevel_Native_to_RND(level); } void LoadLevelFromFilename(struct LevelInfo *level, char *filename) diff --git a/src/files.h b/src/files.h index 55883725..3c68f01f 100644 --- a/src/files.h +++ b/src/files.h @@ -57,8 +57,8 @@ void SaveLevel(int); void SaveLevelTemplate(); void DumpLevel(struct LevelInfo *); -void CopyNativeLevel_RND_to_EM(struct LevelInfo *); -void CopyNativeLevel_EM_to_RND(struct LevelInfo *); +void CopyNativeLevel_RND_to_Native(struct LevelInfo *); +void CopyNativeLevel_Native_to_RND(struct LevelInfo *); void LoadTapeFromFilename(char *); void LoadTape(int);