X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=eaf1aa29c1102780beb2acd3cfcab5e75b5a3dfc;hb=4f6fe351c7b605d97c1ba8f482fb72e467dc19cb;hp=920f0861ccf408ed2d16f36831b4b937c861f700;hpb=2443a8a09966a9940e1420c91d24a297325c2a00;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 920f0861..eaf1aa29 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1,7 +1,7 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-2001 Artsoft Entertainment * +* (c) 1995-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -1273,8 +1273,8 @@ static char *getElementInfoText(int element) { char *info_text = "unknown"; - if (element < num_element_info) - info_text = element_info[element]; + if (element < NUM_LEVEL_ELEMENTS) + info_text = element_info[element].editor_description; else Error(ERR_WARN, "no element description for element %d", element); @@ -3641,6 +3641,7 @@ static void HandleCounterButtons(struct GadgetInfo *gi) case ED_COUNTER_ID_SELECT_LEVEL: LoadLevel(level_nr); + TapeErase(); ResetUndoBuffer(); DrawEditModeWindow(); break; @@ -3920,6 +3921,9 @@ static void HandleControlButtons(struct GadgetInfo *gi) Request("No Level without Gregor Mc Duffin please !", REQ_CONFIRM); else { + if (LevelChanged()) + level.game_version = GAME_VERSION_ACTUAL; + for(x=0; x