X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=ac9a5d847b736ba871dbbdd565a38690243aa117;hb=2d603d06ca862f3ca0721b66f62da188faf866c4;hp=920f0861ccf408ed2d16f36831b4b937c861f700;hpb=2443a8a09966a9940e1420c91d24a297325c2a00;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 920f0861..ac9a5d84 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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); @@ -3920,6 +3920,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